Building AC11 add-on on ppc-Mac with CodeWarrior 9
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2007-10-19
01:56 PM
- last edited on
‎2023-08-04
04:23 PM
by
Doreena Deng
‎2007-10-19
01:56 PM
We have a problem building example add-on (Attribute_Test) using CodeWarrior 9 and ArchiCAD 11 devkit. We are using macOS X 10.4 on ppc-Mac.
There was also a problem with math.h header file, which is used by CodeWarrior for some reason (isn't /usr/include/architecture/ppc/math.h for gcc?). The fix was to not use _scalb$UNIX2003 when CodeWarrior is used:
/* maps to _scalb$UNIX2003 on __ppc__ and _scalb elsewhere */
#if defined( __ppc__ ) && ! defined(__MWERKS__)
extern double scalb ( double, double ) __asm("_scalb$UNIX2003" );
#else
extern double scalb ( double, double );
#endif
When in linking phase, the following error is outputted by the linker:
Link Error : Can't load object data for file 'bundle1.o'
This happens even though the bundle1.o is included in the add-on project.
Any ideas?
There was also a problem with math.h header file, which is used by CodeWarrior for some reason (isn't /usr/include/architecture/ppc/math.h for gcc?). The fix was to not use _scalb$UNIX2003 when CodeWarrior is used:
/* maps to _scalb$UNIX2003 on __ppc__ and _scalb elsewhere */
#if defined( __ppc__ ) && ! defined(__MWERKS__)
extern double scalb ( double, double ) __asm("_scalb$UNIX2003" );
#else
extern double scalb ( double, double );
#endif
When in linking phase, the following error is outputted by the linker:
Link Error : Can't load object data for file 'bundle1.o'
This happens even though the bundle1.o is included in the add-on project.
Any ideas?
Labels:
- Labels:
-
Add-On (C++)
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2007-10-30 05:44 PM
‎2007-10-30
05:44 PM
jyrki.saarinen wrote:Does the CodeWarrior project still have a valid link to the library? You can check by right-clicking on the file and selecting "File Path" (see the attached image).
When in linking phase, the following error is outputted by the linker:
Link Error : Can't load object data for file 'bundle1.o'
This happens even though the bundle1.o is included in the add-on project.
Any ideas?
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2007-11-28 11:22 AM
‎2007-11-28
11:22 AM
I had the same problems when trying to build in CodeWarrior9.0. I've switched to CodeWarrior9.6 and problems went away...
Pavol
Pavol