#23 Do not link tests on mingw

open
nobody
None
5
2012-10-17
2008-05-11
No

I try compile/link tests.
Console output:
[code]
ibpp>gmake
Platform : windows_mingw
Target : release

g++ -DIBPP_WINDOWS -Wall -mthreads -mconsole -D_MT -DWIN32_LEAN_AND_MEAN
-O3 -o release/tests.exe release/core/_ibpp.o release/core/_dpb.o
release/core/_ibs.o release/core/_rb.o release/core/_spb.o
release/core/_tpb.o release/core/array.o release/core/blob.o
release/core/database.o release/core/dbkey.o release/core/driver.o
release/core/events.o release/core/exception.o release/core/service.o
release/core/row.o release/core/statement.o release/core/transaction.o
release/core/date.o release/core/time.o release/core/user.o
c:/lang/mingw/4.3.0/bin/../lib/gcc/mingw32/4.3.0/../../../libmingw32.a(main.o):main.c:(.text+0x104):
undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
gmake: *** [release/tests.exe] Error 1
[/code]

In link command forgot tests.o

If add tests.o all link Ok

Related

Code: code

Discussion

  • Alexandr Zamaraev (aka Tonal)

    Logged In: YES
    user_id=980085
    Originator: YES

    File Added: ibpp-2-6.diff

     

Log in to post a comment.