Game Development Community

Linking Error: ljpeg_DEBUG.lib

by Spencer Cagan · in Technical Issues · 01/09/2003 (6:10 pm) · 16 replies

Hello Fellow Torquers,

I am getting the following linking error:

Linking...
LINK : fatal error LNK1104: cannot open file "ljpeg_DEBUG.lib"
Error executing link.exe.

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

I have the latest official update, and I don't see this file anywhere on my machine.

Would this be on the CD?

Thanks,
SC

#1
01/10/2003 (5:56 am)
did you compile the Torque SDK.dsw ? the lib file and other associated files are only created when a Torque SDK.dsw is built.

-Ron
#2
01/11/2003 (11:31 am)
Thanks Ron!

Apparently, I compiled the wrong .dsw file. Hmm... this stuff is much different than the Mainframe world that I am accustomed to.

Thanks again. Much appreciated.

SC
#3
01/13/2003 (7:24 am)
Heh I had the exact opposite effect on a recent contract "Dmanit why doesn't this #$#@$@# mainframe act like a PC?!?!".
#4
01/13/2003 (1:15 pm)
Now that's funny. I guess there's problems on both sides of the fence.

SC
#5
03/06/2005 (9:26 am)
I compiled Torque SDK.dsw and made sure that the file ljpeg_DEBUG.lib exists in the specified folder but i still
get the error.

\Torque\SDK\lib\out.VC6.DEBUG\ljpeg_DEBUG.lib
\Torque\SDK\lib\out.VC6.DEBUG\lpng_DEBUG.lib
\Torque\SDK\lib\out.VC6.DEBUG\lungif_DEBUG.lib
\Torque\SDK\lib\out.VC6.DEBUG\zlib_DEBUG.lib
\Torque\SDK\lib\out.VC6.DEBUG\glu2d3d_DEBUG.lib
\Torque\SDK\lib\out.VC6.DEBUG\opengl2d3d_DEBUG.lib
LINK : fatal error LNK1181: cannot open input file "ljpeg_DEBUG.lib"
Error executing link.exe.

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


thanks
#6
03/06/2005 (11:05 am)
I had this yesterday and a rebuild didnt solve it. I had to restore my visual C++ project file from SVN

It got busted and threw out all the library paths
#7
03/06/2005 (12:32 pm)
Thanks "Man of Ice" it worked however now i have a small issue when using "shared mfc" library i get the following error
when running in debug mode

First-chance exception in torqueDemo_DEBUG.exe: 0xC0000005: Access Violation.

It occurs at the beginning of the following bit of code
if (next && next->flags == 0)
{
treeRemove((FreeHeader *) next);
hdr->size += next->size + sizeof(Header);
hdr->next = next->next;
if(next->next)
next->next->prev = (Header *) hdr;
}

cheers
#8
03/06/2005 (1:17 pm)
If i set the MFC library as 'static' i get the following errors:

nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in platformMemory.obj
nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in platformMemory.obj
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
../example/torqueDemo_DEBUG.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

torqueDemo_DEBUG.exe - 3 error(s), 1 warning(s)

Any helps is appreciated
#9
03/08/2005 (10:40 pm)
I JUST STARTED GETTING THIS PROBLEM! Outta the middle of nowhere, I wasnt changing the source, I wasnt recompiling.

Even after deleting the entire SDK tree, re-running the installer, re-compiling (thrice) and still same thing.

Edit: Only thing that seemed to work for me was MANUALLY compiling all the libs, and then torque. Usually when I click "Rebuild All" it cycles through and rebuilds everything, it looks like now it isnt.. I'll see if this is still the same tommorrow...
#10
03/09/2005 (12:30 am)
I have huge problems with my build. Just as you Ed - it came from out of nowhere.

Now my debug builds do not show the call stack when debugging - making it impossible to debug.

And also - when I now hit rebuild solution, 3 of the libs do not compile (max3, max4 and bm8). SO no biggie but still.

I'm using the 1.3+lighting pack codebase and vc.net. If anyone has a solution to at least the debug problem, I would buy you a beer at IGC
#11
08/03/2005 (12:47 pm)
Interesting!!! I wasn't even thinking about compiling yet. But I ran across this post and thought I would try it. And you know something, I get the ljpeg_DEBUG.lib missing error. So, what do I do to make it go away? I am using vc 6.0.
#12
08/03/2005 (1:03 pm)
I guess it wasn't all that hard to make the error go away. Just recompile the missing lib. As it turned out, when I went to the RTS, I got some missing libs there as well. I just recompiled and the errors went away.
#13
10/10/2005 (7:03 pm)
When I use MFC static or shared keep getting this error in DEBUG mode only. In release mode it works fine. So i checked to make sure ljpeg_DEBUG.lib has been compiled and it is. The only solution is to get rid of MFC which I currently use. Anybody managed to solve this with MFC.


Project options:

COMCTL32.LIB COMDLG32.LIB USER32.LIB ADVAPI32.LIB GDI32.LIB WINMM.LIB WSOCK32.LIB ljpeg_DEBUG.lib lpng_DEBUG.lib lungif_DEBUG.lib zlib_DEBUG.lib vfw32.lib ../lib/vorbis/win32/ogg_static.lib ../lib/vorbis/win32/vorbis_static_mt.lib " /nologo /subsystem:console /incremental:yes /pdb:"../engine/out.VC6.DEBUG/torqueDemo_DEBUG.pdb" /debug /machine:I386 /nodefaultlib:"LIBC" /nodefaultlib:"LIBCD" /out:"../example/torqueDemo_DEBUG.exe" /pdbtype:sept /libpath:"../lib/out.VC6.DEBUG"


Thanks
#14
06/13/2006 (4:52 am)
Hey guys
i was compiling the torque SDK.dsw exactly as decribed above using Visual Studio .Net
but it did not succeed and gave errors
i am giving you the exact thing which i got in the debug portion

'torqueDemo_DEBUG.exe': Loaded 'C:\Torque\SDK\example\torqueDemo_DEBUG.exe', Symbols loaded.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\NTDLL.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\winmm.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\USER32.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\KERNEL32.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\GDI32.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\ADVAPI32.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\rpcrt4.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\wsock32.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\ws2_32.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\msvcrt.dll', No symbols loaded.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\ws2help.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\imm32.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\mmdrv.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Unloaded 'C:\WINNT\system32\mmdrv.dll'
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\MSCTF.DLL', No symbols loaded.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\dinput8.dll', No symbols loaded.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\hid.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\SETUPAPI.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\USERENV.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\comctl32.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\NTMARTA.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\WINSPOOL.DRV', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\mpr.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\WLDAP32.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\samlib.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\ntdsapi.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\dnsapi.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\NETAPI32.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\secur32.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\netrap.dll', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\OLE32.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\shlwapi.dll', No symbols loaded.
'torqueDemo_DEBUG.exe': Loaded 'C:\WINNT\system32\OLEAUT32.DLL', Cannot find or open a required DBG file.
'torqueDemo_DEBUG.exe': Unloaded 'C:\WINNT\system32\dinput8.dll'
'torqueDemo_DEBUG.exe': Unloaded 'C:\WINNT\system32\SETUPAPI.DLL'
'torqueDemo_DEBUG.exe': Unloaded 'C:\WINNT\system32\USERENV.DLL'
'torqueDemo_DEBUG.exe': Unloaded 'C:\WINNT\system32\hid.dll'
The program '[868] torqueDemo_DEBUG.exe: Native' has exited with code 0 (0x0).

and then it gave a error message that it could not find the file main.cs and then that it cound not open the SDK
please if some one can tell me something about how to rectify it
since i am very new in this field
#16
05/09/2008 (9:21 am)
Thank