Results 1 to 4 of 4

Thread: cygwin keyripper question (missing library?)

  1. #1
    Registered User baelang's Avatar
    Join Date
    May 2002
    Posts
    252

    cygwin keyripper question (missing library?)

    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/showthrea...&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 )
    Last edited by baelang; 11-01-2002 at 06:25 PM.
    BaeLang
    ---
    "seek and ye shall find." <-- god's way of saying use the damn search button. (or grep)

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    1,262
    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
    "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." --Albert Einstein

  3. #3
    Registered User baelang's Avatar
    Join Date
    May 2002
    Posts
    252
    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!
    BaeLang
    ---
    "seek and ye shall find." <-- god's way of saying use the damn search button. (or grep)

  4. #4
    Registered User Mr. Suspicious's Avatar
    Join Date
    May 2002
    Posts
    667
    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)
    Before asking anything read the pre-face section of http://www.smoothwall.org/download/p....9/doc.faq.pdf

    after you've read it, you know what to do next...




    "Stay alert! Trust noone! Keep your Lazers Handy! Have a nice day." -- Provided courtesy of the Computer. The Computer never lies.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On