Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello everyone,

I'm trying to run an OpenGL Super Bible example with the GLTools framework but I'm having this issue with VS10.

The foruns I've seen so far recommend ignoring the LIBC.lib library but then I get unresolved externals:

freeglut_static.lib(freeglut_main.obj) : error LNK2001: unresolved external symbol __iob

Any suggestions?

Regards

Edit:

I also tryed downloading the library from:https://rapidshare.com/#!download|548tl|142955584|LIBC.LIB|828|R~05F63B3E14FEA7C7D62CA52895508691|0|0[^]

But now I get:

VB
1>LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRTD.lib(MSVCR100D.dll)
1>LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRTD.lib(MSVCR100D.dll)
1>LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRTD.lib(MSVCR100D.dll)
1>LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj)
1>LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj)
1>LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj)
1>LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj)
1>LIBC.lib(crt0.obj) : error LNK2005: _mainCRTStartup already defined in MSVCRTD.lib(crtexe.obj)
1>LIBC.lib(crt0.obj) : error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR100D.dll)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>c:\users\juca\documents\visual studio 2010\Projects\GLModel\Debug\GLModel.exe : fatal error LNK1169: one or more multiply defined symbols found
Posted
Updated 5-Mar-12 4:03am
v2
Comments
Mohibur Rashid 5-Mar-12 11:18am    
I don't see any unresolved external at all.. all i see is some function exists both in libc.lib and msvcrtd.lib
AndreFratelli 5-Mar-12 12:57pm    
This:

freeglut_static.lib(freeglut_main.obj) : error LNK2001: unresolved external symbol __iob
Sergey Chepurin 5-Mar-12 14:40pm    
You can try what it says to you: 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library. It is in Linker->Input->Ignore all default libraries. Or try to exclude only MSVCRTD.lib.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900