C wrapper help

Re: C wrapper help

Postby Antonio Linares » Thu Oct 20, 2016 5:36 pm

Randal,

I execute xcc.exe and get this:

I don't see an option for C++

c:\xhb\bin>xcc
Pelles ISO C Compiler, Version 3.00.0 (Beta)
Copyright (c) Pelle Orinius 1999-2005

Syntax:
xCC [options] srcfile{.C|.ASM}

Options:
/D<name>[=<text>] Define a preprocessor symbol
/E Preprocess only (to stdout)
/Fo<outfile> Name the output file
/Gd Use __cdecl as default calling convention (default)
/Gh Enable hook function call
/Gm Don't decorate __stdcall or __fastcall symbols (if /Ze)
/Gn Don't decorate exported __stdcall symbols (if /Ze)
/Gr Use __fastcall as default calling convention (if /Ze)
/Gz Use __stdcall as default calling convention (if /Ze)
/I<path> Add a search path for #include files
/J Default char type is unsigned
/MD Enable dynamic C runtime library (POCRT.DLL)
/MT Enable multi-threading support (CRTMT.LIB)
/O1 Same as /Os
/O2 Same as /Ot
/Op[-] Improve floating-point consistency
/Os Optimize, favor code space
/Ot Optimize, favor code speed
/Ox Perform maximum optimizations
/T<target> Select output target (/T? displays a list)
/U<name> Undefine a preprocessor symbol
/V<n> Set verbosity level 0, 1 or 2 (default n = 0)
/W<n> Set warning level 0, 1 or 2 (default n = 1)
/X Don't search standard places for #include files
/Zd Enable line number debugging information
/Ze Enable Microsoft extensions
/Zg Write function prototypes to stdout
/Zi Enable full debugging information
/Zl Omit default library name in object file
/Zs Syntax check only
/Zx Enable Pelles C extensions
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: C wrapper help

Postby Antonio Linares » Thu Oct 20, 2016 5:39 pm

http://forum.pellesc.de/index.php?topic=5117.0

Pelles C does not support C++


If you want to use that DLL you may need to change your C compiler or maybe build a DLL that access the DLL in C++

EXE --> first DLL --> second C++ DLL

complex but it may work
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 82 guests

cron