Hello, I posted on this forum two times before about a particular pair of non-printing characters being inserted into my code. You can find the threads [here](https://www.daniweb.com/software-development/threads/441611/stray-non-printing-characters-in-my-programs) and [here](https://www.daniweb.com/software-development/cpp/threads/450296/arbitrarily-appearing-non-printing-character). Two great posters tried their best to solve this problem (mike_2000_17 and deceptikon) to no avail. Finally, using the hints that their responses provided, and a great deal of unhealthy obsession, I dug to the root of the problem. In doing so I uncovered a sort of 'generic response' to finding these kinds of errors. I figured I would share that methodology here. **Step 1: Isolate the characters** In my case, …

Member Avatar
+0 forum 0

Hello guys, I've wrote a symbol table creator that uses hash function to determine the position of the symbol in the table and a linked list approach for the storing process in the table. And to the point. I've known myself for doing easy problems the hard way(and my teachers tell me that too) and I am bad with pointers, so what I want to ask - is there a better way to do some of the things I did in my code and with a short description why it is so. What I am after here is to learn …

Member Avatar
Member Avatar
+0 forum 3

Hi Answerers, **Background:** I just figured out how to solve my unresolved external symbols by just dragging the project files from explorer (contained in exe's directory) and plonking them in the dll project, under thier own filter! **Original Situation:** I was getting 'unresolved external symbols' errors because I was #include-ing files that my dll needed that resided in the exe's project folder. Guessing I would figure that the .obj files would get built and the .dll would not know where they were to link to them. **My Question:** * Will this cause any problems in the future? - having two …

Member Avatar
Member Avatar
+0 forum 2

import java.util.*; public class Node { int costs[][]=new int [4][4]; int mincosts[]=new int [4]; int dest[]=null; ArrayList packets=new ArrayList(); Simulator sim=null; /** *@param args */ public RoutingPacket creatertpkt(int srcid, int destid,int mincosts[]) { RoutingPacket oRPacket =new RoutingPacket(); oRPacket.setSourceid(srcid); oRPacket.setDestid(destid); oRPacket.setMincost(mincosts); return oRPacket; } void rtinit(int srcid,int dest[], int initcosts[][],int initMinCosts[],Simulator s) { System.out.println("Entering rtinit\n"); costs=initcosts; mincosts=initMinCosts; sim=s; this.dest=dest; for(int i=0; i<dest.length ;i++)sim.toLayer2(creatertpkt(srcid,dest[i],mincosts)); //packets.add(creatertpkt(srcid,dest[i].mincosts)); printTable(); } public void rtupdate(RoutingPacket oReceivedPacket){ System.out.println("Entering rtupdate"); int destid, i,j; int srcid = oReceivedPacket.sourceid; for(destid=0; destid < 4; destid++) { int mincosts12[] = {999,999,999,999}; //if there is a new min distance if (oReceivedPacket.mincost[destid]!=999) { //update distance …

Member Avatar
Member Avatar
+0 forum 4

Hello good day. I am hoping to discover some free/trial software that will allow we to identify a printed/drawn symbol/sticker on images in a folder. I have taken a picture of a few pages from my notebook(handwritten). On these pages I have put stickers. Is there a software that allows me to have a reference picture which can be used to search and locate other images in my folders with that reference picture in them? I'm aware of Evernote's Moleskin smartbook and its page camera. Are there any others however for the desktop computer please? Thank you so much for …

Member Avatar
Member Avatar
+0 forum 2

There is an unresolved external symbol in main.cpp when i try to call the insert function. I can’t find the reason why this is happening? Any help is appreciated. main.cpp #include "List.h" int main() { LList<int> number; number.Insert(1); } list.h #include <iostream> using namespace std; template <class T> class LList { private: struct Node { T value; struct Node *next; }; Node *head; public: LList() {head = NULL;} void Insert(T); void Delete(T); void Display(); }; list.cpp #include "List.h" template <class T> void LList<T>::Insert(T temp) { Node *newNode; Node *nodePtr; newNode = new Node; newNode->value = temp; newNode->next = NULL; if(!head) …

Member Avatar
Member Avatar
+0 forum 1

HI people, First post here, please go easy on me :) #include <iostream> #include <array> int main() { using namespace std; array<int, 5> cppArr = {1,2,3,4,5}; //"missing braces.." error and unresolved symbol highlight return 0; } With "-pedantic -Wall -Werror" specified, compiling the above snippet in eclipse (using cygwin or minGW) would give me an warning/error along the lines of > error: missing braces around initializer for 'std::array<int, 5u>::value_type [5] {aka int [5]}' [-Werror=missing-braces] Adding another pair of braces solves the problem: array<int, 5> cppArr = {{1,2,3,4,5}}; As far as i know the first version of the code is correct …

Member Avatar
Member Avatar
+0 forum 12

I'm taking a beginning java class and I'm trying to create a helper method to get a input from a user and combine all four methods into a package I can use in my programs after. I keep running into trouble with the last method, getMenuStringFromUser, the error it gives me says java cannot find symbol method getIntegerFromUser(java.lang.String,int,int) here's what i have so far package bulletproof; import java.util.*; //BULLETPROOF METHOD FOR INTEGERS // better general method with low and high limits class getIntegerFromUser { public static int getIntegerFromUser(String prompt, int low, int high) { Scanner keyboard = new Scanner(System.in); while …

Member Avatar
Member Avatar
+0 forum 3

Not sure if this is quite the place for my question, but I dunno why you couldn't handle it ;) Really just looking for some opinions/answers on develop/design workflows for small/medium projects using AdobeCS5. This week I discovered many of the magics between Illustrator/Flash, such as arranging symbols on an artboard, giving them appropriate instance names, and then importing that **.AI** file to the Flash Stage (where everything is right where I left it, even the instance names, so now my actionscript can kick off without fuss). What I find myself wanting is a way to update these symbols in …

Member Avatar
+0 forum 0

I'm fairly new to C++ and my professor gave me most of the code to start with. I'm supposed to write a program that uses the add_day(int n) function I wrote in Chrono.cpp. There must be a problem with the **Chrono::Date add_day(int n);** line. Here is the error: hw4pr2.obj : error LNK2019: unresolved external symbol "class Chrono::Date __cdecl add_day(int)" (?add_day@@YA?AVDate@Chrono@@H@Z) referenced in function _main //file hw4pr2.cpp #include "Chrono.h" #include "std_lib_facilities_3.h" int main() { Chrono::Date date; //declaring our date variable from the Chrono.cpp file Chrono::Date add_day(int n); //This is where the error has to be cout << "Enter a date with …

Member Avatar
Member Avatar
+0 forum 2

Having issues fixing these issues: error LNK2019: unresolved external symbol "public: __thiscall grid::grid(void)" (??0grid@@QAE@XZ) referenced in function "void __cdecl `dynamic initializer for 'GridObject''(void)" (??__EGridObject@@YAXXZ) F:\Dev103\thermonuclear war game\thermonuclear war game\Grid.obj error LNK1120: 1 unresolved externals F:\Dev103\thermonuclear war game\Debug\thermonuclear war game.exe 1 //header file #include <iostream> using namespace std; class grid{ int r, c; public: grid(); void GridFunction(); int getR(){return r;} int getC(){return c;} void setR(int a){a = r;} void setC(int b){b = c;} }; //create object extern grid GridObject; //has something to do with this, when commented out fixes that error but rest of my program has issues. //cpp file #include …

Member Avatar
Member Avatar
+0 forum 1

Hey guyz im beginner from java programming. Could anyone please help me fix my problem? I have this method ~~~ public void determineClassAverage() { Scanner input = new Scanner(System.in); int total; // sum of grade int gradeCounter; //number of grade to be entered NEXT int grade; // grade value int average; // avarage of grades //initialization phase total = 0; //initial total gradeCounter = 1; // loop counter //processing phase while (gradeCounter <= 10)//loop 10 times { System.out.print("Enter: "); grade = input.nextInt(); total = total + grade; gradeCounter = gradeCounter + 1; //increment counter by 1 } //end of while …

Member Avatar
Member Avatar
+0 forum 7

I am receiving the following error messages and I can't figure out why, I'm guessing there's just some syntax rule or something I am just unaware of... there errors are: error LNK2019: unresolved external symbol "void __cdecl validateWidgets(int &)" (?validateWidgets@@YAXAAH@Z) referenced in function "void __cdecl manager(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?manager@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) and error LNK2019: unresolved external symbol "void __cdecl getInfo(int,double &,int &)" (?getInfo@@YAXHAANAAH@Z) referenced in function "void __cdecl tempWorker(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?tempWorker@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) here's my code: [CODE] #include <iostream> #include <string> #include <iomanip> using namespace std; void getInfo(int, double &, int &); string getName(); void heading(string); char menu(string); void …

Member Avatar
Member Avatar
+0 forum 2

Hello. I have started writing a program that adds students and courses into a university. The problem I have is I keep getting "Student.java:62: cannot find symbol" errors, I looked at an example and I have it setup the same way so I don't know where I am going wrong. Any help would be appreciated [CODE] /** * @(#)Student.java * * * @author * @version 1.00 2012/2/28 */ import java.util.*; public class Student { private String name; private int year, studentNumber; ArrayList<Course> courses; public Student(String n, int s, int y) { name = n; studentNumber = s; year = y; …

Member Avatar
Member Avatar
+0 forum 1

Hi. im kinda new here . i just want some help with this code i cant seem to figure out my problem, i already declared a constructor but it keeps on saying cannot find symbol when i compile it -_- import javax.swing.JOptionPane; import java.io.*; public class Sample_Thread { public static class Thread1 extends Thread {//thread class public String title; public int length; public String string1[]; public String string2[]; int transversion = 0; int transition = 0; public Thread1(String name, int len, String a[], String b[]) { title = name; length = len; string1 = a; string2 = b; } public …

Member Avatar
Member Avatar
+0 forum 3

Ok, so basically I have an assignment in which I have to determine if what the user typed in is a number between 0-9, a letter or a symbol. The commands I can use are: [CODE]cout endl system("pause") system("cls") #include<iomanip> setw(#) setfill('ch') "\t" cin getline(cin,s) bool char int double string #include<string> #include<cmath> #include<windows.h> → directiva utilizada para poder el comando de ::Sleep() ::Sleep(#) n.length() && || IF/ELSE: -----if(condición) -----{ -------// código -----}else{ -------// código -----} (t)x → changes the variable x to variable type t SWITCH: -----switch(variable) -----{ ----------case n : // código -------------------break; ----------default : // código --------------------break; -----} …

Member Avatar
Member Avatar
+0 forum 9

I know that this is probably a stupid question :\ but I am stupid... I am getting [ICODE]1>angledCollision.obj : error LNK2001: unresolved external symbol "protected: static class angledCollision * Singleton<class angledCollision>::ms_Singleton" (?ms_Singleton@?$Singleton@VangledCollision@@@@1PAVangledCollision@@A) [/ICODE] [ICODE]1>spawningArea.obj : error LNK2001: unresolved external symbol "protected: static class angledCollision * Singleton<class angledCollision>::ms_Singleton" (?ms_Singleton@?$Singleton@VangledCollision@@@@1PAVangledCollision@@A) [/ICODE] I know the problem is that a source file wasn't found, but I can't see where... Singleton hedder(theres no .cpp implementation): [CODE=C++] #ifdef _MSVC // Turn off warnings generated by this singleton implementation #pragma warning (disable : 4311) #pragma warning (disable : 4312) #endif #ifndef SINGLETON_H #define SINGLETON_H #include <assert.h> template …

Member Avatar
Member Avatar
+0 forum 2

Hello, I'm just starting to learn Java, and for a summation program that we started in class, I've been stuck on the question as to why this brings up an error message when I try to build it. Please advise me. [CODE]import java.util.Scanner; public class summation{ public static void main(String[] args){ int n; int s=0; Scanner X=new Scanner(System.in); System.out.print("Enter # of terms: "); n = X.nextInt(); for(int i=1; i <= n; i=i+2); { s= s+ i; } System.out.print(+s); } }[/CODE] The exact probem shows that within the for loop, the i is not found. [CODE]for(int i=1; i <= n; i=i+2); …

Member Avatar
Member Avatar
+0 forum 1

For my project I am sending the HTML value from one text editor. For that I had set the character set to UTF-8. Here I am sending value through URL. In the text editor I am Providing the facility of changing the color of text. Now when I change the color of text then on the servlet page where I had to get those values and to store it on database, am not able to get the entire value from URL. I am just getting the value before '#' symbol. Ex. I am sending following HTML value from URL. <p>Add …

Member Avatar
Member Avatar
+0 forum 3

Hey all, I've spent the last couple hours looking at other posts with the same error and have still yet to figure out what is wrong. I'm just learning C++, I have a bit of experience with Python but, still just getting my feet wet. Here is the code. [CODE] #include "stdafx.h" #include <iostream> using namespace std; int winmain() { cout << "Palindrome Test" << endl; char *charlist; //Pointer for the array, so the user can specify the size. int numchars; //Variable for the number of characters in the array numchars = 5; //Initializing numchars int counter,counter2; //Two int counters, …

Member Avatar
Member Avatar
+0 forum 3

How can my program search for strings that has " " enclosing it and compare it to another string? Thanks for helping me!

Member Avatar
Member Avatar
+0 forum 1

Hi everyone, I have a "This should be simple!" kind of problem. I need to do a little socket programming on a SunOS machine. I went back to an old school assignment I did years ago, cut-n-pasted that code, intending to basically cannibalize it for the program I need to write now. Trouble is, my compiler chokes on the socket-specific terms like getaddrinfo() or inet_ntop. Here is the output when I try to compile: ---------------------------------------------------------------------------- [CODE]bash-3.00$ g++ Main.cpp Undefined first referenced symbol in file getaddrinfo /var/tmp//ccCpuGRv.o freeaddrinfo /var/tmp//ccCpuGRv.o inet_ntop /var/tmp//ccCpuGRv.o gai_strerror /var/tmp//ccCpuGRv.o ld: fatal: Symbol referencing errors. No output written …

Member Avatar
Member Avatar
+0 forum 2

Hello, I have compiled a GCC plugin successfully, but I get error when linking: [CODE]$ make /opt/imo/bin/g++ -g -fplugin=../libimo/libimo.so -o test main.cpp cc1plus: error: Cannot load plugin ../libimo/libimo.so ../libimo/libimo.so: undefined symbol: _ZN11NodeFactory10CreateNodeEN4BEEV4KindERKNS0_7ASTNodeES4_RKSt6vectorIS2_SaIS2_EE make: *** [default] Error 1 [/CODE] I know that the plugin works fine for other Ubuntu users, so I don't understand what could be the cause of this error on my system. I read on the Internet that "undefined symbol" error means that the linker can not find the line where a specific object was defined in the code. Is there a way to trace down where the …

Member Avatar
Member Avatar
+0 forum 4

hey guys! do you have idea how to print a * and in a square symbol like this ***** * * * * * * ***** i have my code in here but it didnt follow like that

Member Avatar
Member Avatar
+0 forum 14

Can someone please help me with this error I am getting when compiling: [B]DivSales.obj : error LNK2001: unresolved external symbol "private: static int DivSales::totalSales" (?totalSales@DivSales@@0HA) 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\...\Week 3 - Challenge 7\Debug\Week 3 - Challenge 7.exe : fatal error LNK1120: 2 unresolved externals[/B] Here is my code: [b][u]DivSales.h:[/u][/b] [code]class DivSales { public: DivSales(); void addTotal(int a, int b, int c, int d); int printValue(const int t = 2); int quartSales[4]; private: static int totalSales; };[/code] [b][u]DivSales.cpp[/u][/b] [code]#include "DivSales.h" #include <iostream> using namespace std; void DivSales::addTotal(int a, int b, int c, …

Member Avatar
Member Avatar
+0 forum 5

The End.