I created HelloWorld C++ project in Ubuntu, Eclipse CDT. CDT generates makefile which can be executed from command line: make. It works well in original Ubuntu location.
Now I move the whole project tree to FreeBSD computer and try to build makefile here. Result is:
Makefile looks like this:
I get error message on every -include line. Manually written makefile works in FreeBSD:
Why GCC on FreeBSD doesn't understand CDT generated makefile? GCC version on Ubuntu is:
gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1
GCC version on FreeBSD is:
4.2.1 20070719 [FreeBSD]
Now I move the whole project tree to FreeBSD computer and try to build makefile here. Result is:
Code:
# make
"makefile", line 5: Need an operator
"makefile", line 10: Need an operator
"makefile", line 11: Need an operator
"makefile", line 12: Need an operator
Makefile looks like this:
Code:
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
-include ../makefile.init
RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include objects.mk
...
I get error message on every -include line. Manually written makefile works in FreeBSD:
Code:
all:
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" "main.cpp"
g++ -o"Test" ./main.o
Why GCC on FreeBSD doesn't understand CDT generated makefile? GCC version on Ubuntu is:
gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1
GCC version on FreeBSD is:
4.2.1 20070719 [FreeBSD]