473,327 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Linker error 1104

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
the import library 'ltechexd.lib' I go to the 'project
properties/linker/input' and add it on the line
'additional dependencies'. When I now look at the linker command line it
looks like this:

/OUT:".\Debug/MCSProg.exe" /INCREMENTAL /NOLOGO /DEBUG
/PDB:".\Debug/MCSProg.pdb"
/SUBSYSTEM:WINDOWS /MACHINE:X86 ltechexd.lib "p\ImpLib\ltechexd.lib"

This is wrong; the correct linker command line would be:

/OUT:".\Debug/MCSProg.exe" /INCREMENTAL /NOLOGO /DEBUG
/PDB:".\Debug/MCSProg.pdb"
/SUBSYSTEM:WINDOWS /MACHINE:X86 ltechexd.lib

Somehow "p\ImpLib\ltechexd.lib" creeps in and it is this generating the
linker error 1104 (which is fine
since there is no such thing like "p\ImpLib\ltechexd.lib").
What is this "p\ImpLib\ltechexd.lib" and where does it come from? It is not
even a correct path. All import
libraries are stored at \\jupiter\cpp\implib. This path was also added to
the library paths of VC++ directories.

If I remove the import library from 'project properties/linker/input' and
instead add it to the 'additional options'
of the linker's command line, everything is fine and I get the correct
command line and there are of course
no more linker errors.

Deleting _all_ intermediate files of the project and recreating the import
libraries did not help.

Any Idea what could be wrong with this?
Mar 30 '06 #1
1 2237
> 'additional dependencies'. When I now look at the linker command line it
looks like this:

/OUT:".\Debug/MCSProg.exe" /INCREMENTAL /NOLOGO /DEBUG
/PDB:".\Debug/MCSProg.pdb"
/SUBSYSTEM:WINDOWS /MACHINE:X86 ltechexd.lib "p\ImpLib\ltechexd.lib"
[..] Somehow "p\ImpLib\ltechexd.lib" creeps in and it is this generating the
linker error 1104 (which is fine
since there is no such thing like "p\ImpLib\ltechexd.lib").
What is this "p\ImpLib\ltechexd.lib" and where does it come from? It is
not There's an option in the IDE that automatically links against the import
libraries
generated for projects in the same solution that your project depends on.

If you have a project in the solution that generates ltechexd.lib you should
change the setting under Linker->General->Ignore Import Library to Yes.

Also see "IgnoreImportLibrary property"
libraries are stored at \\jupiter\cpp\implib. This path was also added to
the library paths of VC++ directories.

If I remove the import library from 'project properties/linker/input' and
instead add it to the 'additional options'
of the linker's command line, everything is fine and I get the correct
command line and there are of course
no more linker errors.

That's odd. Maybe you have some bad character in the XML markup
of your project file? I have no idea what would cause this.

-hg
Apr 3 '06 #2

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

Similar topics

1
by: Mike | last post by:
I'm trying to recover MSVC.net to a new laptop to run an open source flight simulation program and have suceeded in building the required plib and simgear projects. I am nearing completion and...
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 C++, 2nd Edition, Volume 1, Annotated Solutions...
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 decided to combine these two programs and develop a...
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 for the "Debug" configuration. The project...
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 based on the following paragraph: Directives...
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 is it seems to be caused by my one CPP file, but...
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: Unresolved external 'vmalloc(void *, int, unsigned int,...
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. Error Message ----------------------- ...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.