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.ob j". 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
_NotifyOnComple te@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 4 1829
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******** ******@TK2MSFTN GP10.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.ob j". 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 _NotifyOnComple te@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
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
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 "__DllMainCRTSt artup@12"...
Here are the errors that I get:
LINK : error LNK2001: unresolved external symbol __DllMainCRTSta rtup@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
_NotifyOnComple te@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
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 "__DllMainCRTSt artup@12"...
Here are the errors that I get:
LINK : error LNK2001: unresolved external symbol __DllMainCRTSta rtup@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 _NotifyOnComple te@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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
C++, 2nd Edition, Volume 1, Annotated Solutions Guide"
Using Dev-C++ 4.9.9.2, The error is:
undefined reference to ‘f(int)’
all the following files are in the same dir.
thanks
|
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 simple GUI app
to display datas queried from PostgreSQL. I did make the following
changes in the project's settings:
Project->Properties->Directories->Include path += C:\Program
|
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 for the "Debug" configuration. The project
successfully compiles/links in "Release" configuration.
Any help is welcome.
|
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 based on the following paragraph:
Directives
The linker's handling of directives left something to be desired in VC2003,
and for this reason code with lots of directives can suffer. In particular
__declspec(export), as it's likely the most common linker directive.
Besides that, don't export...
|
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
is it seems to be caused by my one CPP file, but not sure how. It compiled
just fine. Then I made a simple change and re-compiled, and got the 1215
error. After that I have to bring back in an old version of the code to make
it work again (not fun)...
This seems like a REAL LINKER error, not...
| |
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 unresolved externals /
linker errors:
Error 16 error LNK2028: unresolved token (0A000007) "extern "C" void
__clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)"
(?___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z) referenced in function "public:
virtual __thiscall...
|
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 project and made
some small adaptions so
it fits the new IDE. The project itself links against some import libraries
belonging to dll's I
wrote (these dll's have been ported too, of course).
To keep things simple I only use one import library here. To tell the linker
it should link against
|
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: Unresolved external 'vmalloc(void *, int,
unsigned int, unsigned int)' referenced from C:\TESTE\TESTE.OBJ
Error: Unresolved external 'vmcomplete(void *)'
referenced from C:\TESTE\TESTE.OBJ
Error: Unresolved external 'LogError(char *, int, char
*, int)' referenced from C:\TESTE\TESTE.OBJ
|
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.
Error Message
-----------------------
Error: Unresolved external 'ImqMgr::~ImqMgr()' referenced from C:\DOCUMENTS AND SETTINGS\228753\MY DOCUMENTS\BORLAND STUDIO PROJECTS\DLLEXERCISE\DEBUG_BUILD\MANI.OBJ
Error: Unresolved external 'ImqObj::~ImqObj()' referenced from C:\DOCUMENTS AND...
|
by: Rahul |
last post by:
Hi Everyone,
I have the following polymorphic classes,
class Shape
{
public : virtual void draw()
{
}
virtual void sample();
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |