473,490 Members | 2,472 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Unresolved External Symbol

I am not an experienced programmer, but I had a VC++ program I am
trying to eliminate all the VC++ commands from it...and keeping it as
a normal C/C++ program......I guess I have succeeded so far, but I am
getting the unresolved external symbol errors, this is what I am
getting:
Linking...
Test.obj : error LNK2001: unresolved external symbol "void __cdecl
free_vector(double *)" (?free_vector@@YAXPAN@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
resize(double *,unsigned int)" (?resize@@YAPANPANI@Z)
Test.obj : error LNK2001: unresolved external symbol "double __cdecl
fmax(double * const)" (?fmax@@YANQAN@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
Derivs(double,double * const,double * const,unsigned short,char *
const)" (?Derivs@@YAPANNQAN0GQAD@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
dvector(unsigned int)" (?dvector@@YAPANI@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
Derivs(double,double * const,double * const,unsigned short)"
(?Derivs@@YAPANNQAN0G@Z)
Debug/Test.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

Test.exe - 7 error(s), 0 warning(s)

Please help, not sure what is the problem. what could be the solution.
Jul 22 '05 #1
2 5581
"Freddy" <zf********@hotmail.com> wrote...
I am not an experienced programmer, but I had a VC++ program I am
trying to eliminate all the VC++ commands from it...
What does that mean, exactly? You're still compiling it using VC++...
and keeping it as
a normal C/C++ program......I guess I have succeeded so far, but I am
getting the unresolved external symbol errors, this is what I am
getting:
Linking...
Test.obj : error LNK2001: unresolved external symbol "void __cdecl
free_vector(double *)" (?free_vector@@YAXPAN@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
resize(double *,unsigned int)" (?resize@@YAPANPANI@Z)
Test.obj : error LNK2001: unresolved external symbol "double __cdecl
fmax(double * const)" (?fmax@@YANQAN@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
Derivs(double,double * const,double * const,unsigned short,char *
const)" (?Derivs@@YAPANNQAN0GQAD@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
dvector(unsigned int)" (?dvector@@YAPANI@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
Derivs(double,double * const,double * const,unsigned short)"
(?Derivs@@YAPANNQAN0G@Z)
Debug/Test.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

Test.exe - 7 error(s), 0 warning(s)

Please help, not sure what is the problem. what could be the solution.


The solution would be to provide the definitions of those functions
during the linking stage of building your project. As to where they
come from, or how to add them to the project, sorry, off-topic here.

Try asking in a newsgroup for VC++: microsoft.public.vc.* hierarchy.

Victor
Jul 22 '05 #2

"Freddy" <zf********@hotmail.com> wrote in message
news:f8**************************@posting.google.c om...
I am not an experienced programmer, but I had a VC++ program I am
trying to eliminate all the VC++ commands from it...and keeping it as
a normal C/C++ program......I guess I have succeeded so far, but I am
getting the unresolved external symbol errors, this is what I am
getting:
Linking...
Test.obj : error LNK2001: unresolved external symbol "void __cdecl
free_vector(double *)" (?free_vector@@YAXPAN@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
resize(double *,unsigned int)" (?resize@@YAPANPANI@Z)
Test.obj : error LNK2001: unresolved external symbol "double __cdecl
fmax(double * const)" (?fmax@@YANQAN@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
Derivs(double,double * const,double * const,unsigned short,char *
const)" (?Derivs@@YAPANNQAN0GQAD@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
dvector(unsigned int)" (?dvector@@YAPANI@Z)
Test.obj : error LNK2001: unresolved external symbol "double * __cdecl
Derivs(double,double * const,double * const,unsigned short)"
(?Derivs@@YAPANNQAN0G@Z)
Debug/Test.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

Test.exe - 7 error(s), 0 warning(s)

Please help, not sure what is the problem. what could be the solution.

Hi,
I agree with the earlier post that this is out of topic and moreso need
soem more information, but my immediate guess is that you are calling c++
functions from a C program without doing #ifdef __cplusplus stuff. Do that.
another thing that could go wrong is the calling convention. make sure
you are sticking to one properly and not mixing between them.

kutty
Jul 22 '05 #3

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

Similar topics

4
10066
by: Rodolphe | last post by:
Hello, I'm French so sorry for my approximate English. When I try to compile a project under Visual C++ 6.0, I've got the following errors : applicap.obj : error LNK2001: unresolved external...
0
2750
by: Ida | last post by:
Hi, I am trying to build an dll with Microsoft Visual C++ but during the linking phase I get linking errors. Script.obj : error LNK2019: unresolved external symbol __imp__PyString_AsString...
5
17702
by: cschettle | last post by:
I think you need to link with msvcrt.lib ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000...
2
5298
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
7126
by: Maydogg6 | last post by:
I need a hand with some stubborn link errors. I'm trying to recreate and old program from 6.0 into .NET, but for some reason when I try to compile I'm getting linking errors for all my function...
6
121848
by: sadegh | last post by:
Hi I have a problem with my program in VC++6 When I compile it, the following errors are listed. I spend a lot of time on the groups.google.com to find its reason, but none of comments could...
5
4768
by: bonnielym84 | last post by:
Im new here..didnt noe whether is this the rite way to post my problem..Really need help here..i've been stucked in this error from last wk..My problem is like this..Im using VC++ 6.0 to compile my C...
0
1878
by: bonnielym84 | last post by:
Im new here and im not sure whether is this the right place for me to post my question..anyway..hope that you can help me..i have been stucked in this problem since last wk..My problem is..I'm using...
0
2685
by: Ryan Gaffuri | last post by:
hlink72@hotmail.com (Eric) wrote in message news:<ab8d8b14.0308220550.54fb5f22@posting.google.com>... LNK1120 is a standard C++ error. you using Visual C++? Means your references a class that...
2
2700
by: =?Utf-8?B?YmFzaA==?= | last post by:
Hello, I am compiling a CPP code using Visual studion .net 2003. I get the following error, despite having windldap.h and wldap32.dll in my include and lib paths. Here is the error. uuid.lib...
0
7112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5448
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.