GetStockObject() is part of the Win32 API. The first Google result  
for "GetStockObject" will take you to the Microsoft page which says  
it is in gdi32.lib, so you need to link against that library.

-- ES


On Sep 10, 2008, at 7:41 PM, Jim Sager wrote:

> Here are my 2 link errors:
>
> c:/cs/out/msysx86/optimize/libs/libcrystalspace-1.2.a(win32.o): In  
> function `ZN14Win32AssistantC1EP15iObjectRegistry':
> c:/cs/libs/csutil/win32/win32.cpp:465: undefined reference to  
> [EMAIL PROTECTED]'
>
> c:/cs/out/msysx86/optimize/libs/libcrystalspace-1.2.a(win32.o): In  
> function `ZN14Win32AssistantC2EP15iObjectRegistry':
> c:/cs/libs/csutil/win32/win32.cpp:465: undefined reference to  
> [EMAIL PROTECTED]'
>
> collect2: ld returned 1 exit status
> make: *** [roam] Error 1
>
>
> Here is my link line:
> g++ -O2 -L /c/cs/out/msysx86/optimize/libs -lcrystalspace-1.2 - 
> lcrystalspace_opengl-1.2  -lws2_32 -lmswsock simpmap.o anim.o  
> anim_mon.o attack.o doors.o hit_anim.o iFileHelper.o iImageHelper.o  
> keys.o monster.o netcode.o netcode2.o player.o popup_awt.o  
> popup_guts.o popup_hud.o random.o TextHelper.o universals.o  
> universals2.o walkcd.o xyz_anim.o xyz_hash.o -lcrystalspace-1.2 - 
> lcrystalspace_opengl-1.2 -lws2_32 -lmswsock -o roam
>
>
> So my story thus far is that I'm making an online fighter.  It is  
> mostly done.  I'll have a demo out on Sept 20th at 8pm EST 
> (www.roamingdragon.com for details).  Like I said, it is mostly  
> done, but I haven't compiled the client on Windows.  I have  
> compiled my XYZIM animation tool that uses CS on Windows.  I've  
> been plugging away at this problem for a few hours now.  I thought  
> that someone with some knowledge about how the linker works could  
> direct me to a solution.  It is only 2 errors, and they seem related.
>
> Thanks for your time,
> Jim
>
> ---------------------------------------------------------------------- 
> ---
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win  
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in  
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/ 
> _______________________________________________
> Crystal-main mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/crystal-main
> Unsubscribe: mailto:[EMAIL PROTECTED] 
> subject=unsubscribe


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to