πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #636

Link error CW8 mac compile for windows

#636
From: Alexander Cohen
Date: Wed, 11 Jun 2003 15:27
39 lines
2956 bytes
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.

Thank you,

-- 
Alex Cohen
<http://www.toomuchspace.com>
Technical Details
Message-ID: <BB0CC289.E8%alex@toomuchspace.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10bcce,8730a56750ded940,start
X-Google-Attributes: gid10bcce,public
X-Google-Thread: 114592,8730a56750ded940,start
X-Google-Attributes: gid114592,public
X-Google-Thread: 1014db,8730a56750ded940,start
X-Google-Attributes: gid1014db,public
X-Google-Thread: fd047,8730a56750ded940,start
X-Google-Attributes: gidfd047,public
X-Google-Thread: 109fba,8730a56750ded940,start
X-Google-Attributes: gid109fba,public
X-Google-ArrivalTime: 2003-06-11 08:27:15 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-mail
User-Agent: Microsoft-Entourage/10.0.0.1309
Subject: Link error CW8 mac compile for windows
From: Alexander Cohen <alex@toomuchspace.com>
Newsgroups: alt.comp.lang.learn.c-c++,codewarrior.mac,codewarrior.windows,comp.lang.c,comp.lang.c++
Message-ID: <BB0CC289.E8%alex@toomuchspace.com>
Mime-version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: 8bit
Lines: 41
Date: Wed, 11 Jun 2003 11:27:05 -0400
NNTP-Posting-Host: 24.201.55.36
X-Complaints-To: abuse@videotron.ca
X-Trace: wagner.videotron.net 1055345225 24.201.55.36 (Wed, 11 Jun 2003 11:27:05 EDT)
NNTP-Posting-Date: Wed, 11 Jun 2003 11:27:05 EDT