Results 1 to 7 of 7

Thread: link error please help! :)

  1. #1

    Default link error please help! :)

    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 ==========

  2. #2

    Default

    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.

  3. #3

    Default

    Quote Originally Posted by ArtHome View Post
    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.

  4. #4

    Default

    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

  5. #5

    Default

    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.

  6. #6

    Default

    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.

  7. #7
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Also Steven, look at http://clanlib.org/global-includes-vs2010.html if you already have not

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •