qxcc

If you use the command line, C sources must be compiled first by means of qxcc command line tool. This tool just invokes the C compiler installed on your system (in case of Windows - Visual Studio).

Its syntax is as follows:

qxcc [-32|-64] [-pic] [-debug] [-D <name>]* [-I <path>]* [-i<name>]* [-L<path>]* [-l<name>]* [-c] [-o <output_name>] [-v] [-?|-h|-help|-usage]

When you specify a file name and its path, be careful with its case.

UNIX is case-sensitive, so it will treat files which names come in different cases as separate files.

Option Description
-32 or -64 indicates whether the source is building for 32 or 64 bit system
-debug

tells the compiler to emit extra information for use by a debugger. This information includes details about data types, variable names, function names, and the correspondence between source code line numbers and executable addresses.

-D <name> defines a preprocessor macro. It’s equivalent to writing #define name in the source code before compilation. Example: gcc -D DEBUG main.c
-pic

generates position-independent code, meaning the compiled code can run correctly regardless of where it is loaded in memory.

-c compiles only (without linking)
-I <path> the path to the input file
-i <name> name of the input file
-L <path>

defines the paths to the folders where the libraries defined by option -l will be searched

-l <name>

points at the directory where C headers are located which is typically %LYCIA_DIR\include and where fgifunc.h file should be located.

-o <output_name> references out_file.obj which is the name of the file which will be the result of the compilation. It may also include the path
-v

enables verbose mode. qxcc prints detailed information about the compilation process, including which internal programs and options it uses.

-? or -h or -help or -usage Display this help information
Note: Options marked with asterisks can be used multiple times.

Example:

qxcc -o "C:\Users\me\workspace\C-lib\output\c2.obj" -I "C:\Program Files\Querix\Lycia/include" "C:\Users\me\workspace\C-lib\source\c2.c"

 

Contact Us

Privacy Policy

Copyright © 2026 Querix, (UK) Ltd.