Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Frank Heckenbach
Subject: Can not compile with GPC
Date: 25 Feb 2004, 15:42:36
Doan Ngoc San wrote: > Hi, > My OS is Red hat 7.3, GPC 2.1. In XPENG, options are: > - GP - off > - Target: Linux-x86 (i586-pc-linux-gnulib1c) > - Option for cross compiler not set > - Sample GPC command line: gpc --automake --executable-file-name -static -b i586-pc-linux-gnulib1c -s -O2 --unit..... > > When compiling, error message is: gpc:'-b' must come at the start of the command line. > When choose menu run, error message is: Can not run in cross compiling. > > Please, tell me: > - How to change order of command line for GPC ? > - How to turn off cross compiler (I need only 1 target OS) ? 1. Indeed, there seems to be a problem with command line order with newer GPC versions when cross-compiling from PENG. I'll try to fix it. I don't have a quick work-around now, but this won't matter to you now because you don't want to cross-compile, anyway: 2. Simply choose "Native" for the target (which is also the default). This will just use `gpc' without any cross-compiling options, so it will generate code for whatever system you're on (provided GPC was installed correctly, of course). Then also "run" won't complain. (As you can imagine, if you're really cross-compiling for another system, you can't just run the program on the local system, that's why "run" refuses to run when cross-compiling is selected.) Frank
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Doan Ngoc San | Can not compile with GPC | 25 Feb 2004, 05:06:53 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999-bw (Linux 2.6.26-2-xen-686/i686).