Results 1 to 2 of 2

Thread: Enlightment please:Including CL's line_segment.cpp to winRTSimpleApp

  1. #1
    Peasant
    Join Date
    Dec 2011
    Location
    Indonesia
    Posts
    9

    Question Enlightment please:Including CL's line_segment.cpp to winRTSimpleApp

    Hi, i'm very much grateful get stumbled such a beautiful powerful framework and begins playing with it
    Proton SDK trully teach me a lot , and it did rock my programming world, specially about variants, signals, slots, and messages
    unfortunately.. my skill just not able to accomplish a simple task of including "LineSegment.cpp" to the winRTSimpleApp project,

    i was testing this method "CL_LineSegment2f.get_intersection", the compiler gave that "unresolved external symbol" and then i include the file from
    "\ClanLib-2.0\Sources\Core\Math\line_segment.cpp"

    then i got the following error

    \shared\clanlib-2.0\sources\core\math\line_segment.cpp(32): warning C4627: '#include "Core/precomp.h"': skipped when looking for precompiled header use
    1> Add directive to 'PlatformPrecomp.h' or rebuild precompiled header
    the problem solved by adding PlatformPrecomp.h to the line_segment.cpp

    yes, the problem is solved, the program compiled, the intersections reported.. hooray! but i'm not quite sure that's the right thing to do, since line_segment.cpp is CL's source
    how should i do it in the righteous path? i take a peek at vec3.cpp, vec2.cpp they didn't include the precomp, but compiled just fine, trying to read the code, and searching but couldn't find that precompiled header.. ummm..

    i'm using vc express 2010

    i hope i'm posting on the right section, please do kindly enlighten

    Thank you

    Ps. Happy Holiday!
    PPs. Sorry for my English

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    Hi yohanip,

    The project default for new files that are added in MSVC in Proton projects is to assume they use the "PlatformPrecomp.h" precompiled headers. This is usually correct - but for certain libraries that don't need it, like Clanlib and zlib, you should disable precompiled headers after adding them.

    See screenshot, this is how all the other clanlib files are set. (Sorry, this is MSCV 2005.. but hopefully it's close..!)

    Name:  disable precompiled headers.png
Views: 11
Size:  49.8 KB

    Oh, you should set "Configuration:" to "All configurations" first, so changes are global.
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. Replies: 2
    Last Post: 07-14-2011, 04:22 AM

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
  •