User forums > Help

<filename>.lib: No such file or directory error **SOLVED**

(1/3) > >>

Rune Hunter:
OgreMain.lib: No such file or directory

that is the error I get. I have the Ogre lib foder in the lib directories, both in the porject and the compiler settings. I'm not sure why it is not finding the lib file.

Vampyre_Dark:
Does the file exist?
Did you typo the name?
Are you sure you put the right folder?

The lib fodler might have folders under it, like win/*nix/mac whatever, and the libs are in there.

Rune Hunter:
I am 99.99% it exists. I already checked more than once.

rickg22:
OK just to be sure and finishing off this problem, mind showing us...

a)  a "dir" dump (open command window, change to the appropriate directory, type "dir yourlibraryname.lib", then copy and paste)
b) the contents of the file where you're including that lib... (just to make sure)
c) A screenshot of your project's build settings
c) the full compiler log (compiler settings, other... compiler logging: Full command line) where you're trying to compile?

Thanks.

Rune Hunter:
a) not sure what you mean

b) Contants are as listed:

CEGUIBase.lib
CEGUIBase_d.lib
ode.lib
OgreGUIRenderer.lib
OgreGUIRenderer.pdb
OgreGUIRenderer_d.lib
OgreMain.lib    //The one I am trying to link
OgreMain_d.lib
OgreMain_d.pdb

Folder opt:
debug and release folders of plugin lib files that are not used

c) Pic at bottom of post. I have also tried many many combinations of those settings, moving directories up and down and stuff.

d)

Code::Blocks initialize things (first tab down there, not sure if important):

MessageManager initialized
Manager initialized
PluginManager initialized
Configured 0 tools
ToolsManager initialized
ProjectManager initialized
Scanning for plugins in C:\Program Files\CodeBlocks/share/CodeBlocks/plugins...
Found 10 plugins: AStylePlugin ClassWizard CodeCompletion Compiler DebuggerGDB DefaultMimeHandler DevPakUpdater PluginWizard ToDoList WindowsXPLookNFeel
Opening C:\Documents and Settings\Alex\Desktop\D3D New\D3D.cbp: done
MacrosManager initialized

Compiler Log:

Project   : D3D
Compiler  : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : C:\Documents and Settings\Alex\Desktop\D3D New\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: D3D.cpp
Linking executable: C:\Documents and Settings\Alex\Desktop\D3D New\D3D.exe
mingw32-g++.exe: OgreMain.lib: No such file or directory
Process terminated with status 1 (0 minutes, 5 seconds)
0 errors, 0 warnings


Compiler used Microsoft Visual C++ Toolkit 2003


Navigation

[0] Message Index

[#] Next page

Go to full version