Thomas, I work with a version B20 of cygnus that I had downloaded
about 6-8 months ago. Redhat has changed there download image a lot,
now it is a million folders to download or some "setup" agent to download
which presumably intelligently downloads everything for you.
I haven't tried there latest stuff yet.
Heres a link to the B20 version, which comes as just one big exe file.
This B20 version installed slick, just run full.exe and its a brain dead
simple Windows install. After install, you can select a menu option to
drop into a BASH shell, or a DOS shell. I don't use these, I just use
my own batch files. Heres a simple one which only adds the BIN folder to
After this I can do this from a stock dos/win command prompt:
gcc test.c -o test.exe
After this is run, somehow auto-magically gcc just knows where the INCLUDE
directory is. I can move the root cygnus folder around, and there
is no hidden crapola in the registry as I have never done a full.exe
install on this machine, just copied the CYGNUS directorys over from my
So cygwin must be able to figure out where its being run from:
Then figure out that the include files live relative to it here:
Libs mostly live relative to it here:
As a side note, this is interesting because its harder to find
out where you are run from under Linux(or whether this is appropriate
behavior for an *nix app), and I'm fairly certain that
gcc does not work this way under Linux, instead I think hardcoded paths
are burned into gcc at compile time which act as default include & lib
Check your cygnus folder, it may not be the exact folder names but it
should be similiar. You should be able to find the \include dir with
good-ol stdio.h, etc. Perhaps your install is incomplete.
Or you could try downloading the older cygnuw b20 full.exe.
At 11:58 AM 9/15/2000 +0200, you wrote:
>You were right gcc can't find any of the standard header files. I've tried to
>find out where it looks for em but can't find it. Is there a specific
>destination for these files or can I tell Cygwin where to look for em?? PLEASE
>help this is very frustrating I miss Visual studio :-))
>>Try compiling a simple program with GCC, like:
>>gcc test.c -o test.exe
>>Your make output looks like it can't find the stdio.h header,
>>which should should be an easy one for it to find...
>>At 01:15 AM 9/12/2000 +0200, you wrote:
>>>Thanks for your time :-)) I have browsed through your pages and found
>>>something I didn't know.
>>>But I need to be able to compile SDCC on my own because I'm making a project
>>>at school and will have to se if my changes actually work :-))
>>>>I would suggest downloading a pre-compiled version of SDCC for
>>>>Windoze off the http://sdcc.sourceforge.net homepage. Then
>>>>you don't need to compile it. I've made what I hope are some
>>>>helpful Windose install notes on my webpage, goto http://www.turbobit.com,
>>>>then go to software pages, sdcc.
>>>>At 03:14 PM 9/11/2000 +0200, you wrote:
>>>>Hi all :-)
>>>>Hope you can help me compile SDCC on a windows machine (I dont know the
>>>>system and dont have the time to learn it right now)
>>>>I installed Cygwin ver 1.1.0 with the latest setup.exe file i could find
>>>>the Cygwin files may be a little bit old because i downloaded all the files
>>>>could find in a Danish mirror site (I did this from my job because in
>>>>it is rather expensive to use the Internet and
>>>>it takes time with only a 56.6 modem to download the 22.2 Mb).
>>>>Cygwin is installed on c:\cygwin.
>>>>then I uncompress sdcc-2.2.0a.tar.gz with winzip and places the files in
>>>>Then I started cygwin and changed to the directory c:\sdcc by typing
>>>>cd //c/sdcc. Can't write cd sdcc because it cant find the path
>>>>Then I make dirs (but where I dont know, I still dont know anything about
>>>>Linux) with the following lines
>>>>mkdir -p bin
>>>>mkdir -p /bin
>>>>mkdir -p /usr/local/bin
>>>>mkdir -p /usr/local/share
>>>>mkdir -p /usr/local/share/sdcc51lib
>>>>mkdir -p /usr/local/share/sdcc51inc
>>>>mkdir -p /tmp
>>>>From now on my problems really begin.
>>>>The next step is to change to the directory with the Cygnus programs which
>>>>think would be all those exe files in cygwin\bin and if i cd to that dir
>>>>cp sh.exe /bin (as it says in the installation file) then i'm told:
>>>>cp: 'sh.exe' and '/bin/sh.exe' are the same file.
>>>>Where were it supposed to be copied to??
>>>>If I ignore these copying and cd back to c:\sdcc and type
>>>>make > make.output 2>&1 (found this in the message archive. Nice to get it
>>>>a file because a lot of errors appears and i dont know what they means I
>>>>attched this file)
>>>>So is there anyone who could help me PLEASE :-))
>>>>Attachment Converted: e:\eudt\attach\make.output
>>>Sdcc-user mailing list