Help with Linker errors

K

kleen

Hi ~

I'm getting these linker errors (seem to be run-time library related).
I'm not sure how to approach it. Any ideas please? the project is C/C+
+ code. And nowhere do we have a call to fflush, at least as far as I
have searched.


ERROR 18: EXTERNAL SYMBOL UNRESOLVED
UNRESOLVED EXTERNAL SYMBOL(S):
_fflush in C:\VC60\libc.lib(closeall.c)
Cannot find replacement: ssi_not_supported
_fflush in C:\VC60\libc.lib(fflush.c)
Cannot find replacement: ssi_not_supported
__imp__SetHandleCount@4 in C:\VC60\libc.lib(ioinit.c)
__imp__GetStdHandle@4 in C:\VC60\libc.lib(ioinit.c)
__imp__GetFileType@4 in C:\VC60\libc.lib(ioinit.c)
__imp__GetStartupInfoA@4 in C:\VC60\libc.lib(ioinit.c)
__imp__GetLastError@0 in C:\VC60\libc.lib(commit.c)
__imp__FlushFileBuffers@4 in C:\VC60\libc.lib(commit.c)
__imp__GetLastError@0 in C:\VC60\libc.lib(write.c)
__imp__WriteFile@20 in C:\VC60\libc.lib(write.c)
__imp__SetStdHandle@8 in C:\VC60\libc.lib(osfinfo.c)
__imp__GetLastError@0 in C:\VC60\libc.lib(osfinfo.c)
__imp__GetFileType@4 in C:\VC60\libc.lib(osfinfo.c)
__imp__GetLastError@0 in C:\VC60\libc.lib(lseek.c)
__imp__SetFilePointer@16 in C:\VC60\libc.lib(lseek.c)
__imp__GetCommandLineA@0 in C:\VC60\libc.lib(crt0.c)
__imp__GetVersion@0 in C:\VC60\libc.lib(crt0.c)
__imp__WriteFile@20 in C:\VC60\libc.lib(crt0msg.c)
__imp__GetStdHandle@4 in C:\VC60\libc.lib(crt0msg.c)
__imp__GetModuleFileNameA@12 in C:
\VC60\libc.lib(crt0msg.c)
__imp__HeapDestroy@4 in C:\VC60\libc.lib(heapinit.c)
__imp__HeapCreate@12 in C:\VC60\libc.lib(heapinit.c)
__imp__VirtualFree@12 in C:\VC60\libc.lib(heapinit.c)
__imp__HeapFree@12 in C:\VC60\libc.lib(heapinit.c)
__imp__FreeEnvironmentStringsA@4 in C:
\VC60\libc.lib(a_env.c)
__imp__FreeEnvironmentStringsW@4 in C:
\VC60\libc.lib(a_env.c)
__imp__WideCharToMultiByte@32 in C:\VC60\libc.lib(a_env.c)
__imp__GetEnvironmentStrings@0 in C:\VC60\libc.lib(a_env.c)
__imp__GetEnvironmentStringsW@0 in C:\VC60\libc.lib(a_env.c)
__imp__GetModuleFileNameA@12 in C:
\VC60\libc.lib(stdargv.c)
__imp__UnhandledExceptionFilter@4 in C:
\VC60\libc.lib(winxfltr.c)
__imp__GetProcAddress@8 in C:\VC60\libc.lib(crtmbox.c)
__imp__LoadLibraryA@4 in C:\VC60\libc.lib(crtmbox.c)
__imp__GetCPInfo@8 in C:\VC60\libc.lib(mbctype.c)
__imp__GetACP@0 in C:\VC60\libc.lib(mbctype.c)
__imp__GetOEMCP@0 in C:\VC60\libc.lib(mbctype.c)
__imp__HeapAlloc@12 in C:\VC60\libc.lib(sbheap.c)
__imp__HeapFree@12 in C:\VC60\libc.lib(sbheap.c)
__imp__VirtualFree@12 in C:\VC60\libc.lib(sbheap.c)
__imp__VirtualAlloc@16 in C:\VC60\libc.lib(sbheap.c)
__imp__HeapReAlloc@16 in C:\VC60\libc.lib(sbheap.c)
__imp__IsBadWritePtr@8 in C:\VC60\libc.lib(sbheap.c)
__imp__MultiByteToWideChar@24 in C:\VC60\libc.lib(a_str.c)
__imp__GetStringTypeA@20 in C:\VC60\libc.lib(a_str.c)
__imp__GetStringTypeW@16 in C:\VC60\libc.lib(a_str.c)
__imp__WideCharToMultiByte@32 in C:\VC60\libc.lib(a_map.c)
__imp__MultiByteToWideChar@24 in C:\VC60\libc.lib(a_map.c)
__imp__LCMapStringA@24 in C:\VC60\libc.lib(a_map.c)
__imp__LCMapStringW@24 in C:\VC60\libc.lib(a_map.c)

1 ERROR(S) 75 WARNING(S).
*** Error code 1
 
K

kleen

* kleen:



See the FAQ item on how to post a question about Code That Does Not Work.


See above.


Is it C, C++ or a mixture? Anyway, reduce the problem to a smallest possible
program, then if still necessary do as noted above.


You can be reasonably sure that the runtime library calls fflush.




Cheers, & hth.,

- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

It's mixed code. btw, where can I read the FAQ? couldn't find it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top