Open Bugs | New Bug anonymous
Login/Register

Equi4 SoftwareEdit Bug

Title: can't build package containing c++ code Status: open
Product: Critcl Severity: -
Version: 0.33 Type: bug
Assign to:
Platform:
Linux X86
Message:

File:
Description:

Messages

2003/05/16
I get lots of compiler errors when trying to build a package that
includes c++ code.
The changes in the attached patch to the unpacked starkit worked for
me and don't appear to have broken anything else.
2003/05/23 jcw
doesn't adding "critcl::language c++" solve this?
2003/05/25 waynem
works fine for injecting c++ code into a tcl script, but not if the "-
pkg" option is used. The "critcl::language c++ option" adds the "-x
c++" option to the compile command line which forces gcc to interpret
all files as c++ code regardless of content or filename suffix. When
using "-pkg" some object files are included in the gcc build line and
gcc attempts to compile these as c++ code. The fix is to precede these
files by "-x none" which restores gcc to using the filename suffix to
determine what to do. (NOTE THAT MY PATCH DOES CONTAIN AN ERROR WHERE
THE "-x none" IS APPENDED TO THE COMMAND LINE. I'VE SINCE FOUND IT
SHOULD BE IN QUOTES AND PRECEDED BY A SPACE ie " -x none")
The patch also inserts appropriate declarations for structures and
functions defined externally. 

Files

2003/05/16 critcl_patch text/plain

Bug Tracker © 2002 McMillan Enterprises, Inc.