home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!vnet.ibm.com
- From: peterf@vnet.ibm.com (Peter Forsberg)
- Message-ID: <19920903.044052.17@almaden.ibm.com>
- Date: Thu, 3 Sep 92 13:37:54 SWE
- Newsgroups: comp.os.os2.programmer
- Subject: Re: Does link386 prefer lowercases?
- Reply-To: peterf@vnet.ibm.com
- Organization: IBM Corporation
- Disclaimer: This posting represents the poster's views, not those of IBM
- News-Software: UReply 3.0
- References: <1992Sep3.085819.24591@informatik.uni-bremen.de>
- Lines: 38
-
- In <1992Sep3.085819.24591@informatik.uni-bremen.de> ASpecT (=jvh+ric writes:
- >Yesterday we tried to port a large program from UNIX to OS/2
- >using GNU-C. Compiling was no problem (no changes required)
- >but the linker (link386) caused us crying (in pain).
- >(...)
- > ???? Perhaps one has to order the modules ... but a little test
- > makes us believe thats not necessary
-
- No, the order of the modules is arbitrary.
-
- >(...)
- >* an the most annoying one: the link386 seems to convert all
- > of the identifiers to lowercase ... which caused several
- > multiple-defined-errors ... i.e. we defined a free of our own
- > naming it FREE (which seemed to be natural to us) ... just that
- > small program
- > void f(){}
- > void F(){}
- > main(){f();F();}
- > could not be linked due to _f been multiply defined. Examining
- > the object file shows the correct (uppercase and lowercase)
- > identifiers.
- > ???? I cannot believe that we have to reprogramm the whole
- > stuff and forget about case sensitive identifiers.
-
- No, you don't have to. LINK386 is by default case insensitive. You
- turn case sensitivity on with the flag /NOIGNORECASE (or just /NOI).
- Try using that, and report back. It'll probably not solve all your
- problems, but hopefully some. perhaps someone with experience of GCC/EMX
- can append an example link statement (I've never used it).
-
- Peter
-
- PS: (A longshot:) perhaps GCC/EMX has its own linker (?)
- --
- Peter Forsberg E-mail: peterf@vnet.ibm.com (primary)
- d88-pfo@nada.kth.se (alternate)
- Disclaimer: This posting represents the poster's views, not those of IBM
-