Command Line Syntax

Started by WRP, June 08, 2014, 08:57:54 PM

Previous topic - Next topic

WRP

I'm having some problems with the syntax for the command line tools.

1. Although the docs indicate that the option tags must be followed by a colon, that doesn't work with POCC. Is this a bug?

This does not work:

pocc -I:Include

As a result, I am doing like this:

pocc -I Include -I Include\sys test.c
polink -libpath:Lib -libpath:Lib\Win test.obj

2. Is there a syntax for including more than one path in an expression? I want to write something like this:

pocc -I Include;Include\sys test.c

3. What is the syntax to direct CC to a particular include path?

frankie

From IDE menu select Help->contents.
In help file "command line tools".
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

WRP

#2
#1. Since the syntax is not the same for the different command line tools, I thought it was a mistake.

#2. The POIDE project files have this syntax, so I thought the response-file syntax would also. I guess not.

#3. It seems that CC only has the /x option to block looking in the path defined in the registry. You still have to set the include paths individually for POCC and POLINK.

I had some trouble figuring out the option syntax for CC, because the docs are not clear. With POCC and POLINK, you have to write


pocc -I Include file.c
polink -libpath:Lib file.obj


but this does not work with CC


cc -x -I Include file.c -libpath:Lib file.obj


Instead, you always have to put quotes for the POCC path option, like this


cc -x -I"Include" file.c -libpath:Lib file.obj


dany500