Article View: alt.comp.lang.learn.c-c++
Article #637Re: Link error CW8 mac compile for windows
From: Howard Hinnant
Date: Wed, 11 Jun 2003 16:10
Date: Wed, 11 Jun 2003 16:10
47 lines
3865 bytes
3865 bytes
In article <BB0CC289.E8%alex@toomuchspace.com>, Alexander Cohen <alex@toomuchspace.com> wrote: | Hi, im compiling an application for windows from codewarrior 8 mac. All | compiles fine but at the end I get 6 link errors wich I donοΏ½t understand | since the libraries needed are there in my project. The project has c and | c++ files and I am compiling as C++. The parts that need to be compiled as C | are bracketed with extern "C" and have .c extensions. Here are the errors: | | Link Error : Undefined symbol: 'double fabs(double) (?fabs@@YANN@Z)' | referenced from '_MAT3inverse' in cmsmtrx.c | referenced from 'double Convert15Fixed16(long) (?Convert15Fixed16@@YANJ@Z)' | in cmsio1.c | referenced from '_MAT3inverse' in cmsmtrx.c | | Link Error : Undefined symbol: 'double floor(double) (?floor@@YANN@Z)' | referenced from '_cmsBuildParametricGamma' in cmsgamma.c | referenced from '__cmsQuantizeVal' in cmssamp.c | referenced from '_cmsBuildGamma' in cmsgamma.c | | Link Error : Undefined symbol: 'double pow(double, double) | (?pow@@YANNN@Z)' | referenced from '_cmsBuildParametricGamma' in cmsgamma.c | referenced from '_cmsBuildParametricGamma' in cmsgamma.c | referenced from '_cmsBuildParametricGamma' in cmsgamma.c | referenced from '_cmsBuildParametricGamma' in cmsgamma.c | referenced from '_cmsBuildParametricGamma' in cmsgamma.c | referenced from '_cmsBuildParametricGamma' in cmsgamma.c | referenced from '_cmsBuildParametricGamma' in cmsgamma.c | referenced from '_cmsBuildParametricGamma' in cmsgamma.c | ... | | I have a feeling that I have a name mangling problem but im really not sure | how to fix it. | | Any help is greatly appreciated. Does the application "manually prototype" any of these missing functions? That might cause these symptoms. In C++, one must include the appropriate header instead of writing your own prototype. If that's not it, if you could reproduce this in a small but complete demo, I'm sure we could figure it out. -- Howard Hinnant Metrowerks
Technical Details
Message-ID:
<110620031210507082%hinnant@metrowerks.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-pas-nf2!elnk-pas-nf1!newsfeed.earthlink.net!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!news3.optonline.net!cyclone.rdc-nyc.rr.com!cyclone.nyroc.rr.com!cyclone-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mailReferences:
<BB0CC289.E8%alex@toomuchspace.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10bcce,8730a56750ded940
X-Google-Attributes: gid10bcce,public
X-Google-Thread: 1014db,8730a56750ded940
X-Google-Attributes: gid1014db,public
X-Google-Thread: 109fba,8730a56750ded940
X-Google-Attributes: gid109fba,public
X-Google-Thread: 114592,8730a56750ded940
X-Google-Attributes: gid114592,public
X-Google-Thread: fd047,8730a56750ded940
X-Google-Attributes: gidfd047,public
X-Google-ArrivalTime: 2003-06-11 09:11:23 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-pas-nf2!elnk-pas-nf1!newsfeed.earthlink.net!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!news3.optonline.net!cyclone.rdc-nyc.rr.com!cyclone.nyroc.rr.com!cyclone-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!53ab2750!not-for-mail
Subject: Re: Link error CW8 mac compile for windows
From: Howard Hinnant <hinnant@metrowerks.com>
Newsgroups: alt.comp.lang.learn.c-c++,codewarrior.mac,codewarrior.windows,comp.lang.c,comp.lang.c++
Reply-To: hinnant@metrowerks.com
Message-ID: <110620031210507082%hinnant@metrowerks.com>
References: <BB0CC289.E8%alex@toomuchspace.com>
Organization: Metrowerks
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 8bit
Mail-Copies-To: nobody
User-Agent: Thoth/1.6.1 (Carbon/OS X)
X-Face: )mY~XFHLw)UOW!W#[Ljvxq6Ja7(g'#F0-g*&puNxR8hEJkd@Oue/70^.)I78\
(%a%&Id211u"l/t.llWo/M|?15XUlx9!IGkdWiEmcasiyg"k;Q9[~XuE+`t2"*n(>nmm
@L/q,TjMd5+H{gASEPDR^$
Lines: 47
Date: Wed, 11 Jun 2003 16:10:50 GMT
NNTP-Posting-Host: 24.24.28.152
X-Complaints-To: abuse@rr.com
X-Trace: twister.nyroc.rr.com 1055347850 24.24.28.152 (Wed, 11 Jun 2003 12:10:50 EDT)
NNTP-Posting-Date: Wed, 11 Jun 2003 12:10:50 EDT