Jawaad Ahmad wrote:
Great! Thanx a lot...I was finally able to compile the simple Hello World program. However, those GCC-related files take up 4 MB. Now they're taking up 8 MB b/c they're in two different directories. I'm willing to live with that, but there's gotta be a better way. If I install something that assumes I have version 2.5, and another thing that wants version 2.0, will I have to waste 12 MB? Anyway, thanx...the program compiles and runs!
The next alpha snapshot of GPC will work with current versions of GCC, so this problem will vanish.
However, if I have a USES statement, e.g., USES Crt, or USES Gpc in the sample PI.PAS program, I get the following message once again:
[Win95] C:\TEMP\pas>gpc -Wall pi.pas pi.pas:35: warning: `{' within comment pi.pas:35: warning: `}' within comment pi.pas:26: module/unit interface `Gpc' could not be imported
gpc -Wall --automake pi.pas
Have fun,
Peter
PS: For such GPC-related questions of general interest, it's better to ask them on the GPC mailing list rather than to contact me personally.
Peter Gerwinski wrote:
Jawaad Ahmad wrote:
[Win95] C:\TEMP\pas>gpc -Wall pi.pas pi.pas:35: warning: `{' within comment pi.pas:35: warning: `}' within comment pi.pas:26: module/unit interface `Gpc' could not be imported
gpc -Wall --automake pi.pas
Maybe I should simply stick with C and C++. :-)
[Win95] C:\TEMP\pas>gpc -Wall --automake pi.pas pi.pas:35: warning: `{' within comment pi.pas:35: warning: `}' within comment d:\djgpp\bin\ld.exe: cannot open -lgmp: No such file or directory (ENOENT)
-- (A)bort, (R)etry, (L)ose marbles? __________________________________________ Get paid to surf the web! Go to http://www.alladvantage.com/refhome.asp?refid=BVA866
Jawaad Ahmad wrote:
[Win95] C:\TEMP\pas>gpc -Wall --automake pi.pas pi.pas:35: warning: `{' within comment pi.pas:35: warning: `}' within comment d:\djgpp\bin\ld.exe: cannot open -lgmp: No such file or directory (ENOENT)
Then you do not have the `gmp' library installed which is needed for the `pi' demo program. See:
ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/libs/
for the source of this library (and others) including precompiled binaries for many platforms.
Maybe I should simply stick with C and C++. :-)
Those languages also require libraries to be installed if you want to use them. ;-)
Peter