Page 1 of 1

Compilation without modifications

Posted: Thu Jan 12, 2023 12:48 am
by erick
Hi,

I've installed MCUXpresso, i can build OPENGD77 but i can't modify the source code for testing purposes.

For example :

In the \firmware\source\dmr_codec\codec.c

i modify some line, i add
testing=6;

without type definition.

i create errors syntax in the codec.c but the compilation is always OK, no error messages, as if the compiler did not read the source file.

What is the solution to recompile all the sources ? and the compiler stops if there is syntax errors?

Regards,

Erick

Re: Compilation without modifications

Posted: Thu Jan 12, 2023 1:13 pm
by G4EML
Where are you adding that line? I have just tried it and I get the expected errors when compiling.
There are several conditional sections in that file. If you enter your change in an inactive section (grey background) it won't be seen.

There are multiple ways to start the compile, I usually click on the 'Project' menu then select 'Build Project'

Build progress is shown in the Console window. Errors in the Problems window.

Colin G4EML

Re: Compilation without modifications

Posted: Thu Jan 12, 2023 7:50 pm
by erick
I added a wrong #include
and garbage after #include

I use :
Project-Clean
Start a build immediately-Build the entire workspace

Re: Compilation without modifications

Posted: Thu Jan 12, 2023 7:51 pm
by erick
and :

Re: Compilation without modifications

Posted: Thu Jan 12, 2023 8:03 pm
by erick
and to open the project i choose :
File-Open File
and select the .project in the OpenGD77 directory :

Re: Compilation without modifications

Posted: Fri Jan 13, 2023 5:44 pm
by G4EML
You won't see any error in the 'Building Workspace' dialogue.
You need to watch the Console output which is normally displayed at the bottom of the screen.
Errors will also be indicated by a red X on the file in the left hand project explorer window.

Colin G4EML

Re: Compilation without modifications

Posted: Mon Jan 16, 2023 11:43 pm
by erick
thank you very much, i found !