Learnings

8 views
Skip to first unread message

Phoenix

unread,
Dec 25, 2009, 1:43:48 AM12/25/09
to Discuss a Human Project
re my build error with sockets - found quite interesting thing:

compare:

1.
----------Building project:[ aiconsole - Debug ]----------
g++ -o ./bin/aiconsole-debug.exe ./build/debug/main.o "-L." "-LK:/
projects/ai2svn/human/aiconsole/lib/debug" -laiapi.debug -lws2_32
----------Build Ended----------
0 errors, 0 warnings

2.
----------Building project:[ aiconsole - Debug ]----------
g++ -o ./bin/aiconsole-debug.exe ./build/debug/main.o "-L." "-LK:/
projects/ai2svn/human/aiconsole/lib/debug" -lws2_32 -laiapi.debug
K:/projects/ai2svn/human/aiconsole/lib/debug/libaiapi.debug.a
(aiapisocket.o):K:/projects/ai2svn/human/aiapi/src/aiapisocket.cpp:21:
undefined reference to `WSAStartup@8'

The link order has impact on results!
This is quite unexpected for me...

-By Habbit

Reply all
Reply to author
Forward
0 new messages