Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » howto set U++ to comple for non-c++ source?
Re: howto set U++ to comple for non-c++ source? [message #9342 is a reply to message #9340] Sat, 28 April 2007 17:20 Go to previous messageGo to previous message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
For those who might be interested it was actually easy. I set a compiler flag "GCC: -x c " and then simply defined an external wrapper around my entry point:

extern "C" {
int old_main (int argc, char *argv[]);
};

and it worked like a charm.

The only real problem I can see is that the package depends on GD, PNG, PDF, fontconfig, and a few others. I cannot compile the plugin/*'s for these because I have to compile them with a C not C++ compiler.

EBo --
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: pre-define for preprocessor
Next Topic: howto clean up generated test data?
Goto Forum:
  


Current Time: Mon Aug 25 12:27:16 CEST 2025

Total time taken to generate the page: 0.05867 seconds