473,320 Members | 2,092 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,320 software developers and data experts.

Link error after converting from 6.0 to 2005

After converting from 6.0 to 2005 when I try to Compile my project I'm
getting a LINK error

Error 1 fatal error LNK1181: cannot open input file " ?/.obj"

Any ideas how to fx this please ?

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
Nov 26 '05 #1
9 1608
Hi Michael,
After converting from 6.0 to 2005 when I try to Compile
my project I'm getting a LINK error

Error 1 fatal error LNK1181: cannot open input file " ?/.obj"


Based on the error message, it appears the VC2005 linker could not find the
target input file due to a corrupted input file path name. So would you
have any custom linker's input file setting in your upgraded project?

By the way, I also did a simple test on my local machine, but unable to
repro this problem with a wizard generated MFC6 MDI application. I think
If you can upload a small self-alone repro sample project (zipped) to us,
we may perform some research on it directly.(Please remove the "online" of
my email alias).
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 28 '05 #2
Gary,

The project is BIG and the error only occured on this project ... I'm
wondering if there is some sort of corruption in one of the project files
(not the source file) ... which file containes that path names ? what about
sending you just the sln or other file ?

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com

""Gary Chang[MSFT]"" <v-******@online.microsoft.com> wrote in message
news:qL**************@TK2MSFTNGXA02.phx.gbl...
Hi Michael,
After converting from 6.0 to 2005 when I try to Compile
my project I'm getting a LINK error

Error 1 fatal error LNK1181: cannot open input file " ?/.obj"


Based on the error message, it appears the VC2005 linker could not find
the
target input file due to a corrupted input file path name. So would you
have any custom linker's input file setting in your upgraded project?

By the way, I also did a simple test on my local machine, but unable to
repro this problem with a wizard generated MFC6 MDI application. I think
If you can upload a small self-alone repro sample project (zipped) to us,
we may perform some research on it directly.(Please remove the "online" of
my email alias).
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 28 '05 #3
Hi Michael,

I suggest you can check your upgraded project's property page, one location
is the Configuration Properties\C/C++\Output Files\Object File Name, for an
upgraded VC6 project, it might be as ".\Debug/".

By the way, the genuine VC2005 project directory's location is different
from the VC6 and VS2003, --unlike the VS2003, whose default project
directory is also its solution's directory, in VS2005 the project has its
own directory under the solution's directory:

in VC6
\Demo1: Demo1.dsw, Demo1.dsp,Demo1.cpp,Demo1.h...

in VS2003
\Demo1: Demo1.sln, Demo1.vcproj,Demo1.cpp,Demo1.h...

in VS2005:
\Demo2: Demo2.sln, ... Demo2(Dir)...
\Demo2\Demo2\: Demo2.vcproj,Demo2.cpp,Demo2.h...
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 29 '05 #4
OK, I think the problem is that my C++ directories or PATH settings have got
messed up because its finding the compiler for C++ 6.0 instead of VS 2005.

How do I fix this ?

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com

""Gary Chang[MSFT]"" <v-******@online.microsoft.com> wrote in message
news:Gz**************@TK2MSFTNGXA02.phx.gbl...
Hi Michael,

I suggest you can check your upgraded project's property page, one
location
is the Configuration Properties\C/C++\Output Files\Object File Name, for
an
upgraded VC6 project, it might be as ".\Debug/".

By the way, the genuine VC2005 project directory's location is different
from the VC6 and VS2003, --unlike the VS2003, whose default project
directory is also its solution's directory, in VS2005 the project has its
own directory under the solution's directory:

in VC6
\Demo1: Demo1.dsw, Demo1.dsp,Demo1.cpp,Demo1.h...

in VS2003
\Demo1: Demo1.sln, Demo1.vcproj,Demo1.cpp,Demo1.h...

in VS2005:
\Demo2: Demo2.sln, ... Demo2(Dir)...
\Demo2\Demo2\: Demo2.vcproj,Demo2.cpp,Demo2.h...
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 29 '05 #5
Hi Michael,

VS2005 will not use the VC6's debugger, so I don't think this causes the
problem.

Would you please upload a small repro project(zipped) to us for repro,
then I can perform some research on it directly...
(Please remove the "online" of my email address alias)
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 30 '05 #6
Please read my previous posting.

This has nothing to do with debug, it has to do with compiling.

I have just created a brand new C++ project and I get the same error, so
this sugests to me that it is in fact using the VC 6 compiler.

I tried reinstalling VS2005 but this did not help.

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com

""Gary Chang[MSFT]"" <v-******@online.microsoft.com> wrote in message
news:fe**************@TK2MSFTNGXA02.phx.gbl...
Hi Michael,

VS2005 will not use the VC6's debugger, so I don't think this causes the
problem.

Would you please upload a small repro project(zipped) to us for repro,
then I can perform some research on it directly...
(Please remove the "online" of my email address alias)
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 30 '05 #7
Sorry Michael, I mistyped, I wanted to mean the compiler instead.
I have just created a brand new C++ project and I get the same error,
so this sugests to me that it is in fact using the VC 6 compile.


Do you mean you even cannot complie a genuine VC2005 project in your VS2005
IDE, if you type the "cl" in your Visual Studio 2005 Command Prompt console
window, which version will you find, the VC8 compiler's version should be
14.00.50727.
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 1 '05 #8
Yes, that is correct I can not even compile a genuine new vc2005 project.

When I open up a VC 2005 command prompt I get the correct version of cl

This is my path which looks to be extream ...

PATH=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program
Files\Mic
rosoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio
8\Common7
\Tools;C:\Program Files\Microsoft Visual Studio
8\Common7\Tools\bin;C:\Program F
iles\Microsoft Visual Studio 8\VC\PlatformSDK\bin;C:\Program Files\Microsoft
Vis
ual Studio
8\SDK\v2.0\bin;C:\WINDOWS\Microsoft.NET\Framework\ v2.0.50727;C:\Progr
am Files\Microsoft Visual Studio
8\VC\VCPackages;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program
Files\M
icrosoft SQL Server\80\Tools\BINN;C:\Program Files\Common
Files\Adobe\AGL;C:\Pro
gram Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft
SQL Se
rver\90\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\Progra
m Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Progr am
Files
\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program
Files\Micro
soft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\C
ommon\MSDev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\Progr
am Files\Microsoft Visual Studio\VC98\bin;

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
""Gary Chang[MSFT]"" <v-******@online.microsoft.com> wrote in message
news:S$**************@TK2MSFTNGXA02.phx.gbl...
Sorry Michael, I mistyped, I wanted to mean the compiler instead.
I have just created a brand new C++ project and I get the same error,
so this sugests to me that it is in fact using the VC 6 compile.


Do you mean you even cannot complie a genuine VC2005 project in your
VS2005
IDE, if you type the "cl" in your Visual Studio 2005 Command Prompt
console
window, which version will you find, the VC8 compiler's version should be
14.00.50727.
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no
rights.

Dec 1 '05 #9
Hi Michael,
Yes, that is correct I can not even compile a genuine new vc2005 project.


If so, what's error message while you build a genuine VC2005 project?

Your PATH environment variable seems OK, and your VS2005 IDE will use the
path setting in the %VS8InstallDir%\Common7\Tools\vsvars32.bat first, I
don't think your VS2005 will use the VC6 compiler, I don't find any similar
case in our database.

By the way, is it possible to send us a simple repro sample project(zipped)
for test, currently we are unable to repro this problem in our side...
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 2 '05 #10

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

Similar topics

8
by: Zibi | last post by:
I have some problem with datatime. SELECT * FROM stat WHERE data > '2005-05-24 14:07:28' ORDER BY id Asc I got the error: Microsoft OLE DB Provider for SQL Server error '80040e07' The...
10
by: Gary Hughes | last post by:
I'm getting the following error when attempting to link a managed C++ dll. I can't find any reference to these errors with google. Can anyone help? I've included the class definition causing the...
6
by: ABC | last post by:
I write the code as: <asp:LinkButton ID="LinkButton2" Text='<%# Eval("Title") %>' PostBackUrl='file://<%# Eval("path") %>' runat="server"></asp:LinkButton> But It don't work to download or open...
0
by: rajmgopal | last post by:
Hello Everyone I am getting the following error when i try to insert a record into Sql Server 2005 from my VB 2005 application. sqlEx = {"Error converting data type numeric to numeric."} I...
2
by: Bruce | last post by:
I am converting a DLL project from VC7 to VC8. The project is a managed C++ DLL. The project uses a non managed C++ library compiled an linked in VC7 which uses the STL. I just about got...
1
yabansu
by: yabansu | last post by:
Hi all, I implemented a basic client application. It communicates with server and works properly. Building processes succeed just by giving the following warning: LINK : D:\DOC\Visual Studio...
2
by: trialproduct2004 | last post by:
Hi all, I want to catch error in stored procedure and return error message. I want to catch error 'Syntax error converting the varchar value 'a' to a column of data type int.' Means error...
3
by: misu101 | last post by:
Hi, I have an application that defines a hash_set as: typedef hash_set<const char*, hash<const char*>, chunker_eqstr> StringSet; This code compiles OK with VS6 and SGI STL library. It is...
3
by: eleven1982 | last post by:
I am in the process of converting a Visual C++ 6.0 project to Visual Studio 2005. The conversion is almost complete, but in the linking phase, I get the error: LINK : fatal error LNK1104: cannot...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
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...

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.