[haiku-development] Stray "-I-" in make command of g++?

  • From: Hrishi Hiraskar <hrishihiraskar@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 11 May 2018 16:38:03 +0530

Hie

I'm compiling my GSoC project TrackGit using makefile engine.

I'm getting a stray "-I-" in the command formed by make,  which is giving
me following error:

g++ -c GitCommand/Clone.cpp  -I./  -IGitCommand/
-Iobjects.x86-cc2-release/ *-I-*   -O3    -o
"objects.x86-cc2-release/Clone.o"
In file included from /boot/system/develop/headers/git2.h:11,
    from /boot/home/TrackGit/GitCommand/Clone.cpp:4:
    /boot/system/develop/headers/git2/annotated_commit.h:10: common.h: No
such file or directory
    /boot/system/develop/headers/git2/annotated_commit.h:11: repository.h:
No such file or directory
    /boot/system/develop/headers/git2/annotated_commit.h:12: types.h: No
such file or directory

If I compile with same command but without "-I-", it is compiling.
I don't know why it is and what is happening.
g++ -c GitCommand/Clone.cpp  -I./  -IGitCommand/
-Iobjects.x86-cc2-release/  -O3    -o "objects.x86-cc2-release/Clone.o"

Can anyone help me?

The source is at https://github.com/Hrily/TrackGit

The source also has the Makefile I'm using.

Thank you

Regards
Hrishikesh Hiraskar

Other related posts: