PDA

View Full Version : link error please help! :)



Steven Nagle
03-26-2015, 04:18 AM
Done everything I am supposed to to install it but i keep getting this when i run an example Bacis2D one.

1>------ Build started: Project: Basic2D, Configuration: Debug Win32 ------
1>Build started 26/03/2015 04:14:31.
1>InitializeBuildStatus:
1> Touching "Debug\Basic2D\Basic2D.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1104: cannot open file 'F:\ClanLibDevelopment\Lib\Win32\.obj'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.07
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

ArtHome
03-26-2015, 09:28 AM
Obj files usually must be in current project folder but not in Lib\Win32 Your path settings is wrong.
If you cannot to find *.obj of example, try to force rebuild.

Steven Nagle
03-26-2015, 08:18 PM
Obj files usually must be in current project folder but not in Lib\Win32 Your path settings is wrong.
If you cannot to find *.obj of example, try to force rebuild.

I am using the example 2D and there is no mention of an obj file anywhere in the code, so why is it looking for an obj.

ArtHome
03-27-2015, 12:11 AM
When compiler processing *.c and .cpp files, it produces *.obj files. Then linker from the obj and some others make the *.exe file.
http://en.wikipedia.org/wiki/Object_file

Steven Nagle
03-27-2015, 02:11 AM
Ok so thats how it works but, why is it trying to look for the obj in that dir, but thats where the pre compiled headers are.

ArtHome
03-27-2015, 07:54 AM
The problem is not related to ClanLib. Any compilers have a path settings and yours is wrong. I don't know what compiler you are use and cannot give to you more specific answer. May be you need start with tutorials in C++ programming? ClanLib is too hard nut to start from it.

rombust
03-27-2015, 11:07 AM
Also Steven, look at http://clanlib.org/global-includes-vs2010.html if you already have not