03 May 2011, 06:06
Generic-user-small

Daniel Lehmann (5 posts)

Hi there,

I just got your book and it’s amazing. But while setting um an Eclipse CDT with the GNU g++ and Cygwin I experienced compile errors. Because the whole toolchain is new to me (except having seen some parts of Eclipse) it’s hard for me to figure out what goes wrong.

The problem: First I somehow got a ‘MacOSX GCC’ configuration what is suspicious, cause I’m running under Windows. I have no idea where this came from. When compiling the target called ‘BookCode_Unity_test’ I get this kind of error…

unity.framework/extras/fixture/test/unity_fixture_Test.c:36: error: cast from pointer to integer of different size

...in the Unity testframework and also in the testcode itself.

Do you have any suggestion what goes wrong here? I’m really longing for working through the examples and want to start asap.

Regards from Switzerland
Dani

10 May 2011, 17:27
Generic-user-small

Daniel Lehmann (5 posts)

No one here to help me with my problem?

17 May 2011, 19:29
James2009_pragsmall

James Grenning (130 posts)

Hi Dani

I use a mac, so that is probably where ‘MacOSX GCC’ comes from.

Did you import the projects into the workspace?

There is a problem with unit in the SandBox directory. I’m looking into it.

James

26 May 2011, 18:57
Generic-user-small

Daniel Lehmann (5 posts)

Hi James,

Was on vacation, so I coudn’t reply sooner.

I imported the projects into workspace as it says at the end of the book. I’m quite new to the Eclipse and GCC compiler. I may have made a mistake. I read in several forums and didn’t find an answer yet. You could post links to the downloads for eclipse and gcc. Maybe I use the wrong versions.

Hope you can help.

Dani

10 Jul 2012, 15:53
Generic-user-small

Stephanie Fontana (1 post)

Hi,

I am having a similar issue in Eclipse.

I am following along in Section 3.4 Writing the First Test in Test-Driven Development for Embedded C, and, when I try to build the provided Sandbox makefile in Eclipse, I get the following error from the console:

  • Build of configuration MacOSX GCC for project Code **

make LedDriverTest
cc LedDriverTest.c -o LedDriverTest
LedDriverTest.c:2:27: fatal error: unity_fixture.h: No such file or directory
compilation terminated.
: recipe for target `LedDriverTest’ failed
make: *
[LedDriverTest] Error 1

I have experimented with rearranging includes, and the include for LedDriver.h results in the same error. I’m a beginner in Eclipse and may be missing something simple – am I supposed to be able to start building LedDriver test right off with the version of makefile provided in the Sandbox directory?

Thank you for your help.

Stephanie

  You must be logged in to comment