[ECOS] Confusing compilation problem
Fri Apr 10 08:05:00 GMT 2009
Sergei Gavrikov-4 wrote:
> On Fri, Apr 10, 2009 at 12:30:56AM -0700, grahamlab wrote:
>> Hello all
>> I am trying to evaluate the best way for me to use ecos for my project -
>> use the configtool or command line interface.
>> So I
>> 1.created an ecos build using from command line using the default
>> 2.executed the make command to build ecos
>> 3.created a testbed directory and created a hello world application
>> 4.compiled and linked successfully
>> Next I
>> 1 created an ecos build using the configuration tool
>> 2 created a test bed directory and created a hello world application
>> 3 this does not compile and gives the following errors -
>> test.cpp: In function ‘int main()’:
>> test.cpp:6: error: ‘printf’ was not declared in this scope
>> Both use the same makefile and make.params files(atached) - the only
>> were to point to the correct install directory.
> Graham, not only
> /tmp$ diff configtool_Make.params cli_Make.params
> < export PREFIX := /home/graham/ecos/DevBoard_install
> > export PREFIX := /home/graham/lab1/install
> < export CC := $(COMMAND_PREFIX)gcc
> > export CC := $(COMMAND_PREFIX)g++
> /tmp$ diff configtool_Makefile cli_Makefile
> Are you really going program in C++? Try rename your main.cpp in the
> BTW, the short plain text files you can just attach.
>> If I point the configtool version at the commandline version install tree
>> will compile
>> Could some one explain why this is?
>> http://www.nabble.com/file/p22984314/cli_Make.params cli_Make.params
>> http://www.nabble.com/file/p22984314/cli_Makefile cli_Makefile
>> View this message in context:
>> Sent from the Sourceware - ecos-discuss mailing list archive at
>> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
Helo again Sergei
Beleive me I have tried muliple permutations using both g++ and gcc
The cli vesrion compile with both g++ and gcc
The config tool version compiles with neither.
It seems that you cannot switch between a cli build and a configtool build
I am a little confused but will investigate further.
Do you use the cli exclusively or do you switch between the 2?
View this message in context: http://www.nabble.com/Confusing-compilation-problem-tp22984314p22984595.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss