fatal error LNK1181: cannot open input file ",.obj"  
Author Message
belikekhushi





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

I compiled my program after doing all those settings in "Project Setting Menu"
but i got an error :

fatal error LNK1181: cannot open input file ",.obj"

I think there is some problem in the settings. I checked all the settings tht i know but still not able to remove this error.

If anyone know about the settings in VC++ then plz reply
any help will be of great use
Thanks in advance



Visual C++9  
 
 
Martin Richter





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

Check you linker settings. Did you placed a comma into one of those fields Separate entries with a semicolon.

 
 
belikekhushi





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

I checked my linker settings.. Earlier i was using comma to seperate entries sso in was getting error with ",.obj" input file

Now, i replaced comma with semi-colon and now i am getting same error with ";.obj" file..

Plz help me out...


 
 
Martin Richter





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

What did you entered in you linker settings.

 
 
belikekhushi





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

I tried following two:

First time i tried this one :

"E:\MSDev98\MyProjects\DCMConverter\png\Debug\png.lib" ; "E:\MSDev98\MyProjects\DCMConverter\jpeg\Debug\jpeg.lib" ; "E:\MSDev98\MyProjects\DCMConverter\zlib\Debug\zlib.lib" ; "E:\MSDev98\MyProjects\DCMConverter\tiff\Debug\tiff.lib" ; "E:\MSDev98\MyProjects\DCMConverter\cximage\Debug\cximage.lib"

and second time i tried this one:

E:\MSDev98\MyProjects\DCMConverter\png\Debug\png.lib ; E:\MSDev98\MyProjects\DCMConverter\jpeg\Debug\jpeg.lib ; E:\MSDev98\MyProjects\DCMConverter\zlib\Debug\zlib.lib ; E:\MSDev98\MyProjects\DCMConverter\tiff\Debug\tiff.lib ; E:\MSDev98\MyProjects\DCMConverter\cximage\Debug\cximage.lib

In both cases i m getting the same error msg

Linking...
LINK : fatal error LNK1104: cannot open file ";.obj"
Error executing link.exe.


 
 
Martin Richter





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

Look into the build log, what is the command line for the build process.

 
 
belikekhushi





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

I am sending you the command line of build log

I am new to VC++ so, Its difficult for me to find error in this log.

Build Log

--------------------Configuration: DCMConverter - Win32 Debug--------------------

Command Lines

Output Window

Linking... LINK : fatal error LNK1104: cannot open file ";.obj" Error executing link.exe.

Results

DCMConverter.exe - 1 error(s), 0 warning(s)

 
 
Martin Richter





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

Sorry! I have no idea.

I even can not see that there is a part like this in the command line.

Try to create a new project from scratch.



 
 
Ayman Shoukry





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

As Martin suggested, try creating project from scratch and see if the issue still reproduces.

Thanks,
Ayman Shoukry
VC++ Team


 
 
badraoui





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

hello

i'am a new member; please will tell me if you have already found a solution for this problem , because i have the same problem, please it's very urgent for me :

the message is:

Linking...

LINK : fatal error LNK1181: cannot open input file '.\Debug\AssemblyInfo.obj'

thanks a lot



 
 
Martin Richter





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

Please create a new thread.

Check your linker settings as I wrot ein this thread. Do you have an module named AssemblyInfo



 
 
badraoui





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

thanks for your answer

i have a module named AssemblyInfo, but my programm don't generate AssemblyInfo.obj .

I don't know what to change in linker settings will you help me please!



 
 
Martin Richter





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

What kind of project is this Managed C++/CLI

What did you added to the project, what source files you have



 
 
badraoui





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

it's C++, with a dll main. a added sources that i had in visual studio C++ , and now i want to have them in visual studio .Net

did you think that i should change liker settings



 
 
badraoui





PostPosted: Visual C++ General, fatal error LNK1181: cannot open input file ",.obj" Top

hello

i'am a new member; please will tell me if you have already found a solution for this problem , because i have the same problem, please it's very urgent for me :

the message is:

Linking...

LINK : fatal error LNK1181: cannot open input file '.\Debug\AssemblyInfo.obj'

thanks a lot