Posted by michael on August 16, 2001 at 17:48:55:
In Reply to: strange compiler errors posted by end of my leash on August 16, 2001 at 17:43:59:
Hmmm... I got an error similar to that when I tried to compile my anagram.cpp just by itself w/ g++. Either write a test main to run your anagram.cpp or download his files (test.cpp, test_one.txt), make sure his test.cpp includes your file, and compile his test.cpp. on the command line write:
>g++ test.cpp
>a.out 1 test_one.txt
this will run your executable with his first test to see if it works. hope this helps you!
: please help. my code works in Microsoft! stupid linux!!!
: /tmp/ccmj8YCT.o(.text+0xcb): undefined reference to `ssn(void)'
: /tmp/ccmj8YCT.o(.text+0x407): undefined reference to `hereTheyAre(unsigned long, basic_string
: collect2: ld returned 1 exit status