From: Jesus Calvino-F. <Je...@ec...> - 2002-11-11 10:07:48
|
<html> Hi,<br><br> You can find out by using option -V when compiling; it will show you where the compiler is looking for the include files. For example, when I used the windows executable downloaded from the sdcc snapshot directory I got:<br><br> C:\sdcc.mingw\tests>..\bin\sdcc -c hi.c -V<br> + C:\SDCC~1.MIN\BIN\sdcpp -nostdinc -Wall -lang-c++ -DSDCC=1 -DSDCC_MODEL_SMALL<br> -DSDCC_mcs51 -D__mcs51 -I<font color="#FF0000">C:\SDCC~1.MIN\sdcc\include</font> hi.c C:\WINDOWS\TEMP\sdcc19<br> + C:\SDCC~1.MIN\BIN\asx8051.exe -plosgff hi.asm<br><br> So, the include directory is c:\sdcc.mingw\sdcc\include. Similarly the lib directory is c:\sdcc.mingw\sdcc\lib. On the other, when I used the executable generated from the CVS sources, compiled Visual C++ 6.0, this was the result:<br><br> C:\sdcc\tests>..\bin\sdcc -c hi.c -V<br> + C:\SDCC\BIN\sdcpp -nostdinc -Wall -lang-c++ -DSDCC=1 -DSDCC_MODEL_SMALL -DSDCC<br> _mcs51 -D__mcs51 -I<font color="#FF0000">C:\SDCC\include</font> hi.c C:\WINDOWS\TEMP\sdcc19<br> + C:\SDCC\BIN\asx8051.exe -plosgff hi.asm<br><br> Therefore the include directory is c:\sdcc\include, and the lib directory is c:\sdcc\lib. Hope this helps...<br><br> Jesus<br><br> At 01:55 PM 11/11/02 +0530, Royce & Sharal Pereira wrote:<br> <blockquote type=cite class=cite cite><font face="arial" size=2>Hi,</font><br> <br> <font face="arial" size=2>I'm trying to use 2.3.2. What is the default folder that sdcc looks in for the lib & include files?</font><br> <br> <font face="arial" size=2>The directory structure is the same as 2.3.1, but sdcc cannot find the .h files., where as in 2.3.1 there was no such problem.</font><br> <br> <font face="arial" size=2>Thanks,</font><br> <font face="arial" size=2>--Royce.</font><br> </blockquote><br> </html> |
From: Bernhard H. <Ber...@be...> - 2002-11-11 10:30:41
|
>C:\sdcc.mingw\tests>..\bin\sdcc -c hi.c -V >+ C:\SDCC~1.MIN\BIN\sdcpp -nostdinc -Wall -lang-c++ -DSDCC=1 ->DSDCC_MODEL_SMA LL >-DSDCC_mcs51 -D__mcs51 -IC:\SDCC~1.MIN\sdcc\include hi.c >C:\WINDOWS\TEMP\sdcc19 >+ C:\SDCC~1.MIN\BIN\asx8051.exe -plosgff hi.asm > >So, the include directory is c:\sdcc.mingw\sdcc\include. Similarly the lib directory is >c:\sdcc.mingw\sdcc\lib. Hmm. This is a bug, it shouldn't be sdcc.mingw. I'll have a look. Bernhard |
From: Jesus Calvino-F. <Je...@ec...> - 2002-11-11 19:20:52
|
I don't think is a bug. I just renamed the folder sdcc to sdcc.mingw so I can kept (and use) two versions in the same computer. I belive sdcc (for windows at least) is looking for the root directory where it is installed and from there it builds the other directories. At 11:30 AM 11/11/02 +0100, you wrote: > >C:\sdcc.mingw\tests>..\bin\sdcc -c hi.c -V > >+ >C:\SDCC~1.MIN\BIN\sdcpp -nostdinc -Wall -lang-c++ -DSDCC=1 ->DSDCC_MODEL_SMA >LL > >-DSDCC_mcs51 -D__mcs51 -IC:\SDCC~1.MIN\sdcc\include hi.c > >C:\WINDOWS\TEMP\sdcc19 > >+ C:\SDCC~1.MIN\BIN\asx8051.exe -plosgff hi.asm > > > >So, the include directory is c:\sdcc.mingw\sdcc\include. Similarly the lib >directory is >c:\sdcc.mingw\sdcc\lib. > >Hmm. This is a bug, it shouldn't be sdcc.mingw. I'll have a look. > >Bernhard > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Sdcc-user mailing list >Sdc...@li... >https://lists.sourceforge.net/lists/listinfo/sdcc-user |
From: Bernhard H. <ber...@be...> - 2002-11-11 21:53:00
|
> I don't think is a bug. I just renamed the folder sdcc to sdcc.mingw so I > can kept (and use) two versions in the same computer. Yes, you're right. At the first look I thought that "sdcc.mingw" is compiled in the binaries. But this is not true and everythings is ok. Bernhard |