472,331 Members | 1,637 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Linker Error

Hello All,

I have a Visual C++ 2003 dll solution in a directory called "Antenna
Test Range Control", and when I comile it, I get the error LNK1104:
cannot open file "antenna.obj". When I remove teh spaces in my solution
directory, I get the following errors:

MastController.exp : error LNK2001: unresolved external symbol _Calibrate@8
MastController.exp : error LNK2001: unresolved external symbol _Initialize@8
MastController.exp : error LNK2001: unresolved external symbol _IsAlive@4
MastController.exp : error LNK2001: unresolved external symbol _IsMoving@4
MastController.exp : error LNK2001: unresolved external symbol _MoveAz@12
MastController.exp : error LNK2001: unresolved external symbol _MoveEl@12
MastController.exp : error LNK2001: unresolved external symbol
_NotifyOnComplete@8
MastController.exp : error LNK2001: unresolved external symbol _Stop@0
I know this is a linker problem, but I don't know what to do.

Any ideas? Thanks.

-Joel
Nov 17 '05 #1
4 1694
Don't remove the spaces - if you do that the path becomes invalid since
there's no such directory.

Put quotes around the full path : e.g. "c:\abc and zyx\lots of spaces in
this folder\a b c d....."

--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com
"Joel Whitehouse" <jo************@gmail.com> wrote in message
news:O7**************@TK2MSFTNGP10.phx.gbl...
Hello All,

I have a Visual C++ 2003 dll solution in a directory called "Antenna Test
Range Control", and when I comile it, I get the error LNK1104: cannot open
file "antenna.obj". When I remove teh spaces in my solution directory, I
get the following errors:

MastController.exp : error LNK2001: unresolved external symbol
_Calibrate@8
MastController.exp : error LNK2001: unresolved external symbol
_Initialize@8
MastController.exp : error LNK2001: unresolved external symbol _IsAlive@4
MastController.exp : error LNK2001: unresolved external symbol _IsMoving@4
MastController.exp : error LNK2001: unresolved external symbol _MoveAz@12
MastController.exp : error LNK2001: unresolved external symbol _MoveEl@12
MastController.exp : error LNK2001: unresolved external symbol
_NotifyOnComplete@8
MastController.exp : error LNK2001: unresolved external symbol _Stop@0
I know this is a linker problem, but I don't know what to do.

Any ideas? Thanks.

-Joel

Nov 17 '05 #2
Nishant Sivakumar wrote:
Don't remove the spaces - if you do that the path becomes invalid since
there's no such directory.

Put quotes around the full path : e.g. "c:\abc and zyx\lots of spaces in
this folder\a b c d....."

Ooops - I'm sorry - I should've specified that I renamed the containing
directory to a name with no spaces - I didn't change any of the code in
the project. However, the environment macros *did* change to reflect
the change in $(SolutionPath) and such.

-Joel
Nov 17 '05 #3
Okay, I went into the linker options and put double quotes around my
"Additional Dependancies," which brings about the same effects as
putting the project in a path with no spaces, except that I now have a
new problem with "__DllMainCRTStartup@12"...

Here are the errors that I get:

LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
MastController.exp : error LNK2001: unresolved external symbol _Calibrate@8
MastController.exp : error LNK2001: unresolved external symbol _Initialize@8
MastController.exp : error LNK2001: unresolved external symbol _IsAlive@4
MastController.exp : error LNK2001: unresolved external symbol _IsMoving@4
MastController.exp : error LNK2001: unresolved external symbol _MoveAz@12
MastController.exp : error LNK2001: unresolved external symbol _MoveEl@12
MastController.exp : error LNK2001: unresolved external symbol
_NotifyOnComplete@8
MastController.exp : error LNK2001: unresolved external symbol _Stop@0
Debug/MastController.dll : fatal error LNK1120: 9 unresolved externals

What do I do to resolve them?

-Joel
Nov 17 '05 #4
Joel Whitehouse wrote:
Okay, I went into the linker options and put double quotes around my
"Additional Dependancies," which brings about the same effects as
putting the project in a path with no spaces, except that I now have a
new problem with "__DllMainCRTStartup@12"...

Here are the errors that I get:

LINK : error LNK2001: unresolved external symbol
__DllMainCRTStartup@12 MastController.exp : error LNK2001: unresolved
external symbol _Calibrate@8 MastController.exp : error LNK2001:
unresolved external symbol _Initialize@8 MastController.exp : error
LNK2001: unresolved external symbol _IsAlive@4 MastController.exp :
error LNK2001: unresolved external symbol _IsMoving@4
MastController.exp : error LNK2001: unresolved external symbol
_MoveAz@12 MastController.exp : error LNK2001: unresolved external
symbol _MoveEl@12 MastController.exp : error LNK2001: unresolved
external symbol _NotifyOnComplete@8 MastController.exp : error LNK2001:
unresolved external symbol _Stop@0
Debug/MastController.dll : fatal error LNK1120: 9 unresolved externals

What do I do to resolve them?


Add /verbose to your linker command line options and study the output
produced. Are the files where you expect those symbols to be defined
actually being included in the link?

Use dumpbin /symbols on the .obj files that should define those symbols - do
they in fact define them?

-cd
Nov 17 '05 #5

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

Similar topics

12
by: Baloff | last post by:
Hello I have this linker error which makes me think that the definition file is not being seen by the linker, this code is taken from "Thinking in...
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...
5
by: Pradnyesh Rane | last post by:
Hi, I am encountering the following linker error on VC7. LINK : fatal error LNK1171: unable to load ole32.dll This error is only encountered...
3
by: Steve Baer | last post by:
I recently read your whitepaper under the "extremely long link times" post and have a question that I was hoping you could answer. My question is...
9
by: Peter Oliphant | last post by:
For some reson my code is generating a LNK1215 error, which 'suggests' I re-install VS C++. So I did. which did NOT solve the problem. The weid part...
3
by: Chucker | last post by:
Hi Folks, I got a Wrapper Dll around a native C++ static library. In .NET 1.1 this worked fine. When moving to .NET 2.0 I get a couple of...
1
by: Felix | last post by:
After porting a project from VC6 to VC.NET 2003 I have a very strange problem generating link error 1104 for import libraries. I just ported the...
4
by: yOtA | last post by:
I get this Linker Errors while compiling my program: Error: Unresolved external 'vminit()' referenced from C:\TESTE\TESTE.OBJ Error:...
1
by: Deepath G | last post by:
This is deepath.. I am getting some linker error when i am trying to connect Websphere MQ using Borland C++ Builder 2006 using imqi.hpp on windows....
3
by: Rahul | last post by:
Hi Everyone, I have the following polymorphic classes, class Shape { public : virtual void draw() { } virtual void sample();
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.