Article View: alt.comp.lang.learn.c-c++
Article #639Re: Link error CW8 mac compile for windows
From: Alexander Cohen
Date: Wed, 11 Jun 2003 22:42
Date: Wed, 11 Jun 2003 22:42
40 lines
3143 bytes
3143 bytes
On 6/11/03 5:32 PM, in article mwron-D8B416.17322611062003@enews.newsguy.com, "MW Ron" <mwron@metrowerks.com> wrote: > 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 What prefix file should I be using? Im using a custom one by the makers of a specialized plugin SDK. I've only included the regular Win libraries. Kernel32, user32... I have also included the 3 icm libraries, but I get the link errors without them. I really don�t see how I can narrow this down. I really wish I could. If I create a small app that does a floor, abs and a few other math routines that are currently not linking correctly, they link without any problem with the same libraries. Alex
Technical Details
Message-ID:
<BB0D28AC.41B%alex@toomuchspace.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!c03.atl99!news.webusenet.com!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-mailReferences:
<BB0CC289.E8%alex@toomuchspace.com> <mwron-D8B416.17322611062003@enews.newsguy.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: 1014db,8730a56750ded940 X-Google-Attributes: gid1014db,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 15:43:04 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!c03.atl99!news.webusenet.com!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-mail User-Agent: Microsoft-Entourage/10.0.0.1309 Subject: Re: 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: <BB0D28AC.41B%alex@toomuchspace.com> References: <BB0CC289.E8%alex@toomuchspace.com> <mwron-D8B416.17322611062003@enews.newsguy.com> Mime-version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: 8bit Lines: 41 Date: Wed, 11 Jun 2003 18:42:52 -0400 NNTP-Posting-Host: 24.201.55.36 X-Complaints-To: abuse@videotron.ca X-Trace: wagner.videotron.net 1055371374 24.201.55.36 (Wed, 11 Jun 2003 18:42:54 EDT) NNTP-Posting-Date: Wed, 11 Jun 2003 18:42:54 EDT