| delorie.com/archives/browse.cgi | search |
| From: | Pierre Bosman <pierre AT informix DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | const, far, non-ansi |
| Date: | Mon, 23 Feb 1998 15:27:03 +0200 |
| Organization: | Informix Software, Inc. Menlo Park, CA 94025 |
| Lines: | 20 |
| Message-ID: | <34F17927.70EE9A5F@informix.com> |
| NNTP-Posting-Host: | 204.231.227.99 |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hi Guys
I trying to compile a program that I got off the net.
I initially used Turbo C/C++ compiler which compiled the prog fine. I
then tried to use gcc -o p.exe prog.c
This initially complained about a definition about :
char far *gp; (It did not like far, I did not have ANSI turned on)
I then used gcc -o p.exe prog.c -traditional (This time the far keyword
went through, but now it complains about the 'const' keyword)
I cannot see any other switches that I need to switch on or off. I do
not even know whether it is a switch that I need to look for.
Your help will be appreciated.
Thanx
Pierre Bosman
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |