Trying to Build after adding some new files

Trying to Build after adding some new files

Postby Scott_MacRay » 15 Jan 2013, 12:19

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!
Scott_MacRay
 
Posts: 1
Joined: 15 Jan 2013, 12:13

Re: Trying to Build after adding some new files

Postby hiker » 15 Jan 2013, 23:44

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
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Who is online

Users browsing this forum: No registered users and 1 guest