home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
GNUC167.ZIP
/
LIMITS
< prev
next >
Wrap
Text File
|
1991-12-14
|
2KB
|
48 lines
The -g compiler option can not be used. Future versions of o2obj may
support symbolic debugging.
The -pipe compiler option cannot be used.
Gcc can not be used to link applications. Doing so causes abnormal
termination of gcc.
Collect must be used to gather a global constructor/destructor list
for any C++ application which uses global objects.
Sample usage:
gcc -c part1.cc part2.cc part3.cc
collect -o cdlist.s part1.obj part2.obj part3.obj class.lib
as cdlist.s -o cdlist.o
o2obj cdlist.o
link386 part1 part2 part3 cdlist, app.exe,,class.lib gnulib.lib;
All object files generated by o2obj specify a default library named
libc.lib.
O2obj inserts a reference to the symbol '_acrtused' if the symbol 'main'
is referenced and the symbol '_acrtused is not. This is to tell the linker
to link in the C runtime start off code.
Gcc will only recognize files with the suffix '.cc' as C++ source.
All applications compiled by gcc MUST be linked with gnulib.lib.
MS SDK Library Specific:
The MS SDK runtime library uses return-pops-args convention and
API calls use caller-pops-args convention, so...
The -mrtd compiler option MUST be used when an application uses
the C runtime library.
The -mrtd compiler option MUST NOT be used when an application
uses API calls.
This is very limiting for PM programmers. Perhaps a distributable
C runtime library can be assembled via user contributions.