News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

RadASM and plain C files

Started by BogdanOntanu, January 18, 2008, 09:37:57 PM

Previous topic - Next topic

BogdanOntanu

Hi Ketilo,

Again thanks for RadASM.

I have a question:
I have noticed that in CPP projects IF I change the file extension from ".cpp" to ".c" THEN the file parsing stops.

1) Is this on purpose?
2) Is there a way that I can use RadASM with plain C files without renaming them to ".cpp" ?

Thank you,
Bogdan
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

KetilO

Hi Bogdan

Here is how to solve the problem.
Make a copy of cpp.ini and name it ccpp.ini
Make a copy of your cpp folder and name it ccpp
Edit ccpp.ini section {Code}
Add the line nAsm=7 and save

Use RadASM Option / Programming Languages and add ccpp.ini

to convert cpp projects to ccpp project open the .rap file in notepad and change:
[Project]
Assembler=cpp
To:
[Project]
Assembler=ccpp

ccpp projects will support both c and cpp files

KetilO

BogdanOntanu

Hi Ketilo,

Thank you very much for your explanations and support ;)

:U
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro