From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: list of djgpp compiler errors wanted! Date: 19 Nov 1996 16:27:12 GMT Organization: Oxford University, England Lines: 38 Message-ID: <56sn50$cva@news.ox.ac.uk> References: <32905cab DOT 10273409 AT news DOT uu DOT se> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Martin Gumucio (martin DOT gumucio AT mcu DOT uu DOT se) wrote: : I'm just learning c++ but djgpp is complaining on my coding... : this source is copied right out of my book : int auks; : auks = 19.99 + 11.99; Hmm... which book was this? You're trying to assign a double to an int, which is generally a bad idea. If you want to round it off, look up floor() and related functions in the docs. If you want to keep the numbers as floating point, you must declare auks to be a floating point number, e.g. float or double. : this is the commandline i use : gxx SAMPLE.CPP -o SAMPLE.EXE -lm Be careful with capitalization when passing arguments to Unix-designed software - Unix is a case sensitive operating system and the commands may use case in a special way. For example, gcc does this with .c vs .C and .s vs .S, interpretting the files in different ways. I personally name c programs *.c, c++ programs *.cc, and stick to lower case. : Where can i find a list of all djgpp compiler errorsmessages? I think the info files contain an index... it's gcc specifically which is generating these errors. They're usually quite self-explanatory, anyway. -- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ |""""""""""""""""""""""| >Email: george DOT foot AT merton DOT ox DOT ac DOT uk < |Snail Mail:(*) | > or: mert0407 AT sable DOT ox DOT ac DOT uk < | _ George Foot | > Web: http://users.ox.ac.uk/~mert0407/ < |(@) Merton College | > Ftp: mc31.merton.ox.ac.uk (#) < |~~~~ Oxford OX1 4JD | \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ |______________________| (#) Theoretically... || (*) Please allow 28 days for delivery