如何像Fclose,Fseek一样跳过Vc6.0内置函数 [英] How Do I Skip Vc6.0 Built In Functions Like Fclose , Fseek

查看:99
本文介绍了如何像Fclose,Fseek一样跳过Vc6.0内置函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



i在我的VC代码中添加了一些内置的lib文件

当我构建我的代码时它给了我错误函数如fclose,fseek,fcloseall

这些已经被声明了。意思是在lib文件中的buit哪些代码我看不到这些函数也在那里声明。



有什么方法我告诉我的程序不要使用内置的VC fclose,fseek函数只使用默认的lib添加功能。



注意:

如果我使用VC 6.0会出现此问题



这个问题不在VISUAL STUDIO 8.0 C中

或Visual Studio 10.0 C



plz帮助如何跳过VC内置函数在我的代码中使用

of vc6.0







来自VC 6.0的Erroes是



Hi All

i have added some built in lib files in my VC code
when i built my code it gives me error that functions like fclose ,fseek , fcloseall
these are already declared . means in buit in lib files which code i can not see these functions are also declare there.

is there any way that i told my program not to use built in VC fclose , fseek function only use by default lib which is added that functions.

NOTE:
this problem arise if i use VC 6.0

Tis problem is not in "VISUAL STUDIO 8.0 C"
or "Visual Studio 10.0 C"

plz help how to skip VC built in function to use in my code
of vc6.0



Erroes which comes VC 6.0 are

MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in LIBCD.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fflush already defined in LIBCD.lib(fflush.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in LIBCD.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _sprintf already defined in LIBCD.lib(sprintf.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCD.lib(crt0dat.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _signal already defined in LIBCD.lib(winsig.obj)
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
lapack.lib(dlartg.obj) : error LNK2001: unresolved external symbol __ftol2_sse
libf2c.lib(i_nint.obj) : error LNK2001: unresolved external symbol __ftol2_sse
lapack.lib(dggbak.obj) : error LNK2001: unresolved external symbol __ftol2_sse
lapack.lib(dggbal.obj) : error LNK2001: unresolved external symbol __ftol2_sse
lapack.lib(dlamch.obj) : error LNK2001: unresolved external symbol __ftol2_sse
lapack.lib(ilaenv.obj) : error LNK2001: unresolved external symbol __ftol2_sse
lapack.lib(ilaenv.obj) : error LNK2001: unresolved external symbol ___security_cookie
libf2c.lib(open.obj) : error LNK2001: unresolved external symbol ___security_cookie
libf2c.lib(wref.obj) : error LNK2001: unresolved external symbol ___security_cookie
libf2c.lib(endfile.obj) : error LNK2001: unresolved external symbol ___security_cookie
lapack.lib(ilaenv.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
libf2c.lib(open.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
libf2c.lib(wref.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
libf2c.lib(endfile.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4









HERE lapack libf2c是lib文件,我在我的程序中添加它们以使用它们的功能。



plz help谢谢





HERE lapack libf2c are lib files which i added in my program to use thier functions .

plz help Thanks

推荐答案

你有一些lib不匹配。将链接器设置更改为包含的库所包含的类型。并检查哪些库不需要。



还有链接器设置/ FORCE,但它只是测试的黑客或解决方法。
You have some lib mismatch. Change the linker settings to such types as your included libs are. And check which libs do dont need.

There is also the linker setting "/FORCE" but it is only a hack or workaround for testing.


尝试使用此链接器NODEFAULTLIB选项:



http://msdn.microsoft.com/en-us/library/3tz4da4a.aspx [ ^ ]
Try this linker "NODEFAULTLIB" option:

http://msdn.microsoft.com/en-us/library/3tz4da4a.aspx[^]


错误消息:

The error message:
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library



告诉你如何解决这个问题。


tells you how to resolve this problem.


这篇关于如何像Fclose,Fseek一样跳过Vc6.0内置函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆