How to change avr32-gcc C compiler for C ++ in Atmel Studio 6 without the need to create a new project?

I am transferring the IAR project to Atmel Studio 6. It took me a while to create all the folders and get the correct structure, as in the IAR project. Then I realized that I created the C project when in fact I have C ++ code. Therefore, the question arises: how can I change the GCC compiler from C to C ++ without creating a new project?

I cannot find the appropriate documentation for Atmel Studio 6. Also, I see no way to change this setting from the GUI.

I found out that I do not need to change C for the C ++ compiler. I have to use both. Each compiler does its job. avr32-gcc compiles C code and avr32-gcccpp compiles C ++ code. Now the question is: how to add a second compiler to the project?

I already have avr32-gcc for C.

+4
source share
2 answers

For those interested in the solution, here's how to do it:

Open the project in Atmel Studio 6 Go to the solution explorer and right-click on the project. Select "Upload Project". Now the project should be grayed out. Right-click on the project and select "Modify."

You will see the xml code from the configuration and project settings.

50 o :

<Language>C</Language>
<ToolchainName>com.Atmel.AVRGCC32.C</ToolchainName>

, :

<Language>CPP</Language>
<ToolchainName>com.Atmel.AVRGCC32.CPP</ToolchainName>

.

, (CTRL + F7), Toolchain. C ++.

+8

(, ), , , . , , , , .

+1

All Articles