943,502 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3121
  • C++ RSS
Dec 2nd, 2004
0

Don't know what this C++ error means

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Starlight620 is offline Offline
1 posts
since Dec 2004
Dec 3rd, 2004
0

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

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.
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Dec 3rd, 2004
0

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

Quote 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.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
nvanevski is offline Offline
12 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Homework Help/Feedback
Next Thread in C++ Forum Timeline: c++ debugging error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC