473,385 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help with Linker errors

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
Jul 15 '08 #1
1 2712
kleen wrote:
>
It's mixed code. btw, where can I read the FAQ? couldn't find it.
Did you have to quote the entire message to ask this?

The link is is posted regularly: http://www.parashift.com/c++-faq-lite/

Make sure you link mixed C and C++ applications this the C++ compiler.

--
Ian Collins.
Jul 16 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: william xuuu | last post by:
Actually, I also got linker errors with template functions and template classes. And I avoided both of them successfully, by pouring foo.cpp into foo.h, according to the C++ FAQ. ...
1
by: Generic Usenet Account | last post by:
I am "plugging in" a class type into an STL map definition and I am getting linker errors unless all my class definitions are defined in the header file, as opposed to a separate source file. This...
12
by: Fabio De Francesco | last post by:
Hello. I can't understand why I can't compile the following simple code, where I think I have applied all the needed rules for templates that are declared and defined in different files (*.h and...
1
by: Laszlo | last post by:
Hi all, As a novice I installed PostgreSQL 7.2.1 on Win32 and works, Borland C++Builder Enterprise Suite 5.0 (build 12.34) what works too. I decided to combine these two programs and develop a...
0
by: Tom McDermott | last post by:
I am having linker errors : error LNK2022: metadata operation failed (80131188) : Inconsistent field declarations in duplicated types This code linked sucessfully in C++.NET 2002, but does...
3
by: ralphsieminsky | last post by:
A project compiles fine under VS 2005 RC without the /clr option. However, when /clr is turned on several errors appear: - A symbol exported from a DLL is not found by another DLL referencing...
1
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
1
by: ImamicPH | last post by:
Hi, My first post. How do you resolve linker errors? I have a simple header file that contains one function declaration. This function is used in another file (.cpp) in the definition of a...
2
by: Oneironaut | last post by:
Hello friends, I have an issue with a linker warning. It is the warning LNK4089. I am working in MSVC6.0 I investigated and this warning tells that the import of the library to which it makes...
2
by: Markus Dehmann | last post by:
What to do if an external library is header-files-only (but you have to use it), and you get lots of linker errors? You will necessarily get linker errors "multiple definition of ..." if you try...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.