PDA

View Full Version : cygwin keyripper question (missing library?)



baelang
11-01-2002, 06:03 PM
ok, so i am new to win32 coding. i am using a modified version of the code posted on the forums here:
http://seq.sourceforge.net/showthread.php?s=&threadid=2253
the "scanproclist" suproutine is unchanged, my modifications are elsewhere.

i am using cygwin distribution of gcc, and i get the following errors from the linker:

undefined reference to `___gxx_personality_v0'
collect2: ld returned 1 exit status

so i am missing a library, correct?
can someone please help me discover what i am missing?

(yes, i am using -lth32 )

high_jeeves
11-01-2002, 06:16 PM
Sigh.. reading isnt just for ShowEQ...



Also, if compiling with cygwin/mgw32, you have to add -lth32 on the compile or you'll get an undefined reference error


--Jeeves

baelang
11-01-2002, 06:35 PM
The answer is this:

my program was named "program.cpp" and changing the name to "program.c" fixed the error.

thank you GrimJack for the help!

Mr. Suspicious
11-02-2002, 08:20 AM
Ok, I give up on trying to get this to show up as an attachment soo... anyway, just consider this a quick example to use for building your own keyreader off of.

kscan.c:


As mentioned in that post you refer to, it should have been *.c and not *.cpp (you did not provide the information that your file was named *.cpp nor did you provide you did use -lth32, it's easier to see what someone is doing wrong if you provide full details)