Don't know what this C++ error means

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2004
Posts: 1
Reputation: Starlight620 is an unknown quantity at this point 
Solved Threads: 0
Starlight620 Starlight620 is offline Offline
Newbie Poster

Don't know what this C++ error means

 
0
  #1
Dec 2nd, 2004
I ran my C++ program and got these error messages. I have no idea what they mean. Will somone please help.

error LNK2019: unresolved external symbol "int __cdecl GetInformation(int,int,int,char (* const)[15],char (* const)[15],float * const,float * const,float * const,float * const,float * const)" (?GetInformation@@YAHHHHQAY0P@D0QAM1111@Z) referenced in function _main


fatal error LNK1120: 1 unresolved externals
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,022
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 932
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Don't know what this C++ error means

 
0
  #2
Dec 3rd, 2004
Somewhere within your function main() is another function called GetInformation() that is screwed up! This function maybe internal or more likely from a DLL or library.

We need to know your compiler, operating system and a code snippet.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 12
Reputation: nvanevski is an unknown quantity at this point 
Solved Threads: 1
nvanevski nvanevski is offline Offline
Newbie Poster

Re: Don't know what this C++ error means

 
0
  #3
Dec 3rd, 2004
Originally Posted by Starlight620
I ran my C++ program and got these error messages. I have no idea what they mean. Will somone please help.

error LNK2019: unresolved external symbol "int __cdecl GetInformation(int,int,int,char (* const)[15],char (* const)[15],float * const,float * const,float * const,float * const,float * const)" (?GetInformation@@YAHHHHQAY0P@D0QAM1111@Z) referenced in function _main

fatal error LNK1120: 1 unresolved externals
You sure did not get this message when running your program - it is a linker error complaining that it did not find a certain function (that would be GetInformation). You are not quite specific, but some of the possible problems would be :
- The function is in a library that you link statically to the program, but the library itself is not present;
- The function is in a C++ file that is not placed within a project, and therefore the compiler does not include it in the linking phase;
- You are calling the function with incorrect parameters, the linker tries to find an overloaded func with signature matching the call and fails.

So, check your libraries, your C++ files and your parameters when you call this function.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC