glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Glob2-devel] erreur de link sous solaris


From: Luc-Olivier de Charrière
Subject: [Glob2-devel] erreur de link sous solaris
Date: Fri, 06 Sep 2002 00:54:08 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

J'ai queleques problèmes avec le broadcasting.
Il faut dire que c'est pas dans SDL, donc on se casse un peu plus la tete.

Pour le compiler sur sun, "gmake" ne marche pas.
Ca fini par:

c++ -g -Wall -o glob2 AI.o Building.o BuildingType.o Engine.o EntityType.o Fatal.o GUIBase.o GUIButton.o GUIList.o GUINumber.o GUIText.o GUITextInput.o GUITextArea.o GUIMapPreview.o GUIRatio.o Game.o GameGUI.o GameGUIDialog.o GameGUILoadSave.o Glob2.o GlobalContainer.o GraphicContext.o Map.o MapGenerator.o MapEdit.o NetGame.o Order.o Player.o PreparationGui.o Race.o Session.o SDLSprite.o SDLFont.o SDLGraphicContext.o StringTable.o Team.o TeamStat.o Unit.o UnitType.o Utilities.o FileManager.o CustomGameScreen.o LoadGameScreen.o MainMenuScreen.o MultiplayersOfferScreen.o YOGScreen.o SettingsScreen.o MultiplayersHostScreen.o MultiplayersHost.o MultiplayersJoinScreen.o MultiplayersJoin.o MultiplayersConnectedScreen.o MultiplayersChooseMapScreen.o MultiplayersCrossConnectable.o NewMapScreen.o YOG.o MapGenerationDescriptor.o LANBroadcast.o -lSDL_net -lSDL_image -L/home/smagnena/pub/lib -R/home/smagnena/pub/lib -lSDL -lpthread -lposix4 -lpng ld: warning: file /soft/local/lib/libesd.so.0: section .stabstr: malformed string table, initial or final byte ld: warning: file /soft/local/lib/libaudiofile.so.0: section .stabstr: malformed string table, initial or final byte
Undefined                       first referenced
symbol                             in file
socket LANBroadcast.o (symbol belongs to implicit dependency /usr/lib/libsocket.so.1) gethostbyname LANBroadcast.o (symbol belongs to implicit dependency /usr/lib/libnsl.so.1) bind LANBroadcast.o (symbol belongs to implicit dependency /usr/lib/libsocket.so.1) setsockopt LANBroadcast.o (symbol belongs to implicit dependency /usr/lib/libsocket.so.1) sendto LANBroadcast.o (symbol belongs to implicit dependency /usr/lib/libsocket.so.1) recvfrom LANBroadcast.o (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
ld: fatal: Symbol referencing errors. No output written to glob2


J'ai donc fini par trouver comment linker:

c++ -g -Wall -o glob2 src/*.o /usr/lib/libsocket.so.1 /usr/lib/libnsl.so.1 -lSDL_net -lSDL_image -L/home/smagnena/pub/lib -R/home/smagnena/pub/lib -lSDL -lpthread -lposix4 -lpng ld: warning: file /soft/local/lib/libesd.so.0: section .stabstr: malformed string table, initial or final byte ld: warning: file /soft/local/lib/libaudiofile.so.0: section .stabstr: malformed string table, initial or final byte

Ce qui a changé c'est deux argument en plus:

/usr/lib/libsocket.so.1 /usr/lib/libnsl.so.1

Est-ce que une personne qui connait bien make/automake peut se charger de modiffier les makefiles pour que ca marche ?
Merci !

Luc-Olivier





reply via email to

[Prev in Thread] Current Thread [Next in Thread]