Article View: alt.comp.lang.learn.c-c++
Article #638Re: Link error CW8 mac compile for windows
From: MW Ron
Date: Wed, 11 Jun 2003 21:32
Date: Wed, 11 Jun 2003 21:32
61 lines
3801 bytes
3801 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:
Be sure you are using the right prefix file.
Also I would think that perhaps you may be mixing the headers and
precompiled headers up or something.
Finally do you have any other libraries included perhaps they need to be
rebuilt. If they were built and linked with a pow() or fabs() that are
listed as extern and now they are inlined that can cause a problem.
If you can narrow this down to a smaller project it might help, but I'm
thinking this is very likely from an older library that is being linked
in.
Ron
>
>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.
>
>Thank you,
--
Get printed CodeWarrior Documentation (limited selection)
And all the latest versions of CodeWarrior Manuals
http://www.metrowerks.com/MW/Support/dev_resources/default.htm
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Technical Details
Message-ID:
<mwron-D8B416.17322611062003@enews.newsguy.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!tethys.csu.net!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwronReferences:
<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: 109fba,8730a56750ded940
X-Google-Attributes: gid109fba,public
X-Google-Thread: 114592,8730a56750ded940
X-Google-Attributes: gid114592,public
X-Google-Thread: 1014db,8730a56750ded940
X-Google-Attributes: gid1014db,public
X-Google-Thread: fd047,8730a56750ded940
X-Google-Attributes: gidfd047,public
X-Google-ArrivalTime: 2003-06-11 14:50:37 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!tethys.csu.net!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
From: MW Ron <mwron@metrowerks.com>
Newsgroups: alt.comp.lang.learn.c-c++,codewarrior.mac,codewarrior.windows,comp.lang.c,comp.lang.c++
Subject: Re: Link error CW8 mac compile for windows
Date: Wed, 11 Jun 2003 17:32:26 -0400
Organization: Metrowerks
Lines: 61
Message-ID: <mwron-D8B416.17322611062003@enews.newsguy.com>
References: <BB0CC289.E8%alex@toomuchspace.com>
NNTP-Posting-Host: p-879.newsdawg.com
User-Agent: MT-NewsWatcher/3.2 (PPC Mac 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^$