delorie.com/archives/browse.cgi | search |
From: | "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: HowTo patch RSXNTDJ : a first attempt |
Date: | Mon, 23 Aug 1999 14:45:17 +0100 |
Organization: | (Posted via) Netcom Internet Ltd. |
Lines: | 68 |
Message-ID: | <7prj9t$65u$1@taliesin.netcom.net.uk> |
References: | <4Jbw3.675$Hya DOT 190530560 AT newsa DOT telia DOT net> |
NNTP-Posting-Host: | hgty.capgemini.co.uk |
X-Trace: | taliesin.netcom.net.uk 935415933 6334 194.42.240.2 (23 Aug 1999 13:45:33 GMT) |
X-Complaints-To: | abuse AT corp DOT netcom DOT net DOT uk |
NNTP-Posting-Date: | 23 Aug 1999 13:45:33 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3155.0 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3155.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
gunno wrote in message <4Jbw3.675$Hya DOT 190530560 AT newsa DOT telia DOT net>... >1. Missing library. >-------------------- >c:/djgpp/bin/ld.exe: cannot open -lcomctl32: No such file or directory >(ENOENT) >make.exe: *** [whello.exe] Error 1 >If you get this error message the reason is that there is no library >'libcomctl32.a' in \rsxntdj\lib\. > >However there is a '\rsxntdj\lib\LIBCOMCT.A' and I've been told that the >name has been truncated during the zipping. (Thanks again, Johan Venter!) > >Go to \rsxntdj\lib and make a copy with the longer name: > >cd \rsxntdj\lib >copy LIBCOMCT.A libcomctl32.a Why not just rename LIBCOMCT.A to libcomctl32.a, this will prevent problem the next time someone upgrades, plus it'll save a little disk space. >2. Conflicting names. function.h >-------------------------------- >There is a 'function.h' in \rsxntdj\include\win32 >There is another 'function.h' in \djgpp\lang\cxx > >Don't ask me why these directories are visited during the inclusion process, >(I haven't the foggiest idea) but they _are_ visited regardless of the >values of the environment variables. > >The problem is obvious. If RSXNTDJ wants to include 'function.h' and the >djgpp directory is visited first, wrong file will be included. And arranging >things so the RSXNTDJ directory is visited first is no solution, because >then djgpp will get wrong 'function.h' included. > >My solution so far: > >I: give RSXNTDJ's 'function.h' a new name >cd \rsxntdj\include\win32 >move function.h RS_funct.h /* or whatever name you prefer */ > >II: In RSXNTDJ header files 'function.h' is mentioned at three places: >\rsxntdj\include\longshrt.ls1:23: cpp/stl_function.h stl_func.h >\rsxntdj\include\longshrt.ls2:12: cpp/function.h >and >\rsxntdj\include\Win32\windows.h:55: #include <Function.h> > >The latter is crucial. In windows programming you include windows.h. >So take your editor and change that line in 'windows.h' to > >#include <RS_funct.h> Might it not be better to change the PATH environment variable rather than edit the source files ? >Conclusion: >----------- >As can be seen this HowTo is not finished. There is plenty of room for >improvements and answers to the questions it leaves behind. At least it >gives some help on the way to get a working RSXNTDJ. Keep it up, people will be very thankful for the help.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |