Hi,
Im having some problems using CodeBlocks to build a project usualy done with makefiles. The Makefile is using another version of gcc than the default one. Normaly I just do a export PATH=$PATH:~/somedir/compiler and then cd /home/me/mylib and then make. This works fine. I have also set up a project in CodeBlocks to build this lib and it works fine as long as I modify the makefile to use the default gcc. But when I try to use the other (some version of gcc) compiler it doesnt work. I do not want to do any changes in the Makefile to make it work for CodeBlocks because I still want to do the normal make build outside CodeBlocks. There are some rows in the Makefile that looks something like this:
GNU_TARGET_NAME=i586-unknown-linux-gnu
CROSS_COMPILE=$(GNU_TARGET_NAME)-
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
AR = $(CROSS_COMPILE)ar
ifeq ($(shell which $(CC)),)
$(error Compiler $(CC) not found) - please make sure that it's in the PATH
endif
And I get this buildlog message:
Using makefile: Makefile
../../common.mk:26: *** Compiler i586-unknown-linux-gnu-gcc not found. Stop.
TOP is: /home/me/mytest
Process terminated with status 2 (0 minutes, 0 seconds)
1 errors, 0 warnings
Sorry but I'm new to Linux and I'm new to CodeBlocks..