I am porting a Windows app to MacOSX and have some code written in Cocoa that has an NSView that I need to attach an OpenGL rendering context to (via the aglFuncs...(...)). I am interfacing with a large, existing C++ code base so re-engineering everything for Cocoa is not an option, neither is...
Robrobrob,
To answer your questions, please read:
http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm
I hope this clears things up for you!
Best,
DustinM
I have resolved this issue... by switching to Eclipse with CDT, which worked like a charm. I am now able to compile/link the example posted here (along with my main code-base) without problems now. Still not sure why I couldn't get XCode2 to work in such a simple case...
Dustin
Viro,
I am guessing what you meant by
is the usage of "__attribute__((visibility("default")))" in the class declaration. According to the GCC docs, this is GCC's equivalent to Microsoft VC++ .NET's "__declspec(dllexport)". I am using the "__attribute__((visibility("default")))" class...
I am having difficulty getting a simple C++ test linking in XCode2. I created a sample test where I have a Dynamic library that uses a class contained within a Static library. This results in an "undefined symbols" link error. Relevant code:
[Target: JNITest (dynamic library)]
--FILE...