linking question

Discussion in 'Programming/Scripts' started by queency, Nov 10, 2007.

  1. queency

    queency New Member

    Hi guys:

    when i: g++ /usr/lib/
    everythink compiled and linked ok !

    when i gcc
    all compiled ok!

    when i:ld main.o databaseWrap.o /usr/lib/ /usr/lib/

    ld: warning: cannot find entry symbol _start; defaulting to 0000000000400848
    main.o: In function `__static_initialization_and_destruction_0(int, int)': undefined reference to `__dso_handle'

    what is wrong with my linkage section ??

Share This Page