Page 1 of 1

Trying to Build after adding some new files

PostPosted: 15 Jan 2013, 12:19
by Scott_MacRay
Hello there! first time here for me! please, be patient!

We (My mate and I) are trying to make simple chages to the source code, adding new ".c" classes ¿What have we got to do to be able to Build the new code? It is very complicated because of there are a lot of autogenerated "cmake-files". For example, we are trying to modify the "update_file_list.sh" scritp for making it recongnise ".c" extension files, but it is not working!! return errors at "cmake/SourceGroupFunctions.cmake:23" (or :24).

Thanks in advance for your help!

Re: Trying to Build after adding some new files

PostPosted: 15 Jan 2013, 23:44
by hiker
Hi,

welcome to the forum!

Scott_MacRay {l Wrote}:We (My mate and I) are trying to make simple chages to the source code, adding new ".c" classes

That would likely be the first problem - if you are adding classes, you should use the same ".cpp" files, not .c (it helps the compiler to know that it's a C++ file).

¿What have we got to do to be able to Build the new code? It is very complicated because of there are a lot of autogenerated "cmake-files". For example, we are trying to modify the "update_file_list.sh" scritp for making it recongnise ".c" extension files, but it is not working!! return errors at "cmake/SourceGroupFunctions.cmake:23" (or :24).

Just rename your files to use .cpp/.hpp - the everyhing will work itself out. Just run the script once you have added the files, and you should be ready to go. Not sure what the error is you mention, it might just be that you have C++ code in a .c file - you would need to list the exact error messages (and source code).

Cheers,
Joerg