Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Path Getting Formatted Incorrectly
Path Getting Formatted Incorrectly [message #1855882] Tue, 08 November 2022 19:23
John Klein is currently offline John KleinFriend
Messages: 5
Registered: April 2012
Junior Member
I'm trying to get a RPi cross compile project within Windows to work and getting hit with a strange path issues.

Within the properties for C/C++ Build->Settings->Cross GCC Compiler->Includes I have the following.

"${workspace_loc:/${ProjName}/WiringPi/wiringPi}"

If I right click on a .c file and build it, the command looks like this and compiles successfully.

arm-linux-gnueabihf-gcc "-IC:\\Users\\OmmittedForPrivacy\\Source Code\\WiringPi\\wiringPi" -O0 -g3 -c -fmessage-length=0 -o OmmitedForPrivacy.o "..\\OmmittedForPrivacy.c"

If I right click on the project and build it, the command looks like this and fails.

arm-linux-gnueabihf-gcc -I"C:\Users\OmmittedForPrivacy\Source Code\WiringPi\wiringPi" -O0 -g3 -c -fmessage-length=0 -MMD -MP -MF"OmmittedForPrivacy.d" -MT"OmmittedForPrivacy.o" -o "OmmittedForPrivacy.o" "../OmmittedForPrivacy.c"
../OmmittedForPrivacy.c:5:10: fatal error: wiringPiSPI.h: No such file or directory


What am I doing that is causing it to malform paths when trying to build the project?

[Updated on: Tue, 08 November 2022 19:26]

Report message to a moderator

Previous Topic:How add C/C++ Perspective to Debug Perspective when Debug.
Next Topic:Re: CDT mashing args to gdb
Goto Forum:
  


Current Time: Tue Jan 14 04:27:50 GMT 2025

Powered by FUDForum. Page generated in 0.02982 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top