NO

Author Topic: Command Line Syntax  (Read 3166 times)

WRP

  • Guest
Command Line Syntax
« on: June 08, 2014, 08:57:54 PM »
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?

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: Command Line Syntax
« Reply #1 on: June 09, 2014, 11:55:39 AM »
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

  • Guest
Re: Command Line Syntax
« Reply #2 on: June 09, 2014, 11:13:49 PM »
#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

Code: [Select]
pocc -I Include file.c
polink -libpath:Lib file.obj

but this does not work with CC

Code: [Select]
cc -x -I Include file.c -libpath:Lib file.obj

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

Code: [Select]
cc -x -I"Include" file.c -libpath:Lib file.obj
« Last Edit: June 10, 2014, 07:56:29 PM by WRP »

dany500

  • Guest
Re: Command Line Syntax
« Reply #3 on: October 14, 2014, 11:42:45 AM »
good post.......