How to link large C++-Project in Eclipse -


i working on large c++-project in company. job build code generator parts of project. project managed in kinetis design studio 3.0.0 based on eclipse. compiler used gnu arm c/c++ cross compiler 1.12.1

now problem is: number of files generator created increased, error message appeared:

arm-none-eabi-g++: error: ./00_hmi/fontshandler/sege_ui_11b.o: no such file or directory make: *** [cdsb_autogen.elf] error 1 

the message pops when linker tries link object files final binary. file not found linker exist. if exclude files build error disappears (obviously have fix includes , parts of code depend on files). doesn't seem matter files exclude. can include generated files , exclude others. found here linkers have maximum number of object files can passed in command line. couldn't find limit gcc c++-linker believe problem. compiler creates around 160 object files not sure if of them used in final link stage. not expert make or how eclipse handles these things. if guess correct: there way tell linker use object files?

edit: renamed folder contains of files. linker command got way shorter , works fine. may have either use shorter filenames or pack of .cpp files together.

you can reorganise project structure , chop sources bunch of static libraries linked @ end of building process. reduce size of final linkage command.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -