home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4706 < prev    next >
Encoding:
Text File  |  1992-09-03  |  2.1 KB  |  52 lines

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