OzzyOuzo Posted November 12 Share Posted November 12 Hello, For some reasons, C modules are compiled as C++ and not plain C .. Tried to force using option -x c doesn't help... How can C modules can be compiled as is rather than C++ by default ? thx Quote Link to comment https://forums.atariage.com/topic/375259-compiling-as-c-not-c/ Share on other sites More sharing options...
Sporadic Posted November 12 Share Posted November 12 Iirc it's compiling the way it does to support the BCX basic output which is C++. Therefore it would be too much of a change to support plain c without breaking other things. You'd have to roll your own build scripts etc. Quote Link to comment https://forums.atariage.com/topic/375259-compiling-as-c-not-c/#findComment-5564308 Share on other sites More sharing options...
42bs Posted November 16 Share Posted November 16 On 11/12/2024 at 2:42 PM, OzzyOuzo said: Hello, For some reasons, C modules are compiled as C++ and not plain C .. Tried to force using option -x c doesn't help... How can C modules can be compiled as is rather than C++ by default ? thx What is wrong with C++ if you use it w/o it's whistles and bells? Quote Link to comment https://forums.atariage.com/topic/375259-compiling-as-c-not-c/#findComment-5566353 Share on other sites More sharing options...
OzzyOuzo Posted November 16 Author Share Posted November 16 nothing is wrong with C++. C and C++ are different languages using different compilers. A plain C source code will barely compile with C++ without major modifications as C++ is more strict at many levels for good or bad reasons ^^ Thus, while porting projects , defaulting to a C++ compiler while compiling C modules is requiring unnecessary extra work and pain. Quote Link to comment https://forums.atariage.com/topic/375259-compiling-as-c-not-c/#findComment-5566388 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.