Why did you make your life so hard? Reinstall mspgcc using the default directory name it offers you. Get rid of all those awful long directory names from your make file, leave the include paths and libraries at their default settings, and try again. Then it should work OK.

All you should need in this make file is:

CPP  = msp430-gcc.exe
CC   = msp430-gcc.exe
OBJ  = test.o
LINKOBJ  = test.o
BIN  = test-gcc
CXXFLAGS = $(CXXINCS)  -mmcu=msp430x149 -g -O2  -Wall
CFLAGS = $(INCS)  -mmcu=msp430x149 -g -O2  -Wall

all: $(BIN)

clean: clean-custom
   rm -f $(OBJ) $(BIN)

$(BIN): $(LINKOBJ)
   $(CC) $(LINKOBJ) -o $(BIN)

test.o: test.c $(CC) -c -o test.o test.c $(CFLAGS)

I guess I should stop the installer from even allowing you to change the install directory, since its just an unnecessary source of problems.

Regards,
Steve


[email protected] wrote:

Steve,

Here's my makefile:

--------------------------------------------------------------
# Project: LCD-Proto-gcc
# Makefile created by Dev-C++ 4.9.8.0

CPP  = msp430-gcc.exe
CC   = msp430-gcc.exe
WINDRES = windres.exe
RES = OBJ = test.o $(RES)
LINKOBJ  = test.o $(RES)
LIBS = -L"C:/ProgramFiles/mspgcc020030506/lib/gcc-lib/msp430/3.2.3" -mmcu=msp430x149 -lfp ../../../../../ProgramFiles/mspgcc020030506/msp430/lib/msp1/libm.a ../../../../../ProgramFiles/mspgcc020030506/msp430/lib/msp1/libfp.a INCS = -I"C:/ProgramFiles/mspgcc020030506/msp430/include/msp430" -I"C:/ProgramFiles/mspgcc020030506/msp430/include" -I"C:/ProgramFiles/mspgcc020030506/msp430/include/sys" CXXINCS = -I"C:/ProgramFiles/mspgcc/msp430/include/msp430" -I"C:/ProgramFiles/mspgcc/msp430/include" -I"C:/ProgramFiles/mspgcc/msp430/include/sys" BIN = test-gcc.exe
CXXFLAGS = $(CXXINCS)  -mmcu=msp430x149 -g -O  -Wall
CFLAGS = $(INCS)  -mmcu=msp430x149 -g -O  -Wall

.PHONY: all all-before all-after clean clean-custom

all: all-before test-gcc.exe all-after


clean: clean-custom
   rm -f $(OBJ) $(BIN)

$(BIN): $(LINKOBJ)
   $(CC) $(LINKOBJ) -o "test-gcc.exe" $(LIBS)

test.o: test.c $(CC) -c test.c -o test.o $(CFLAGS)




Reply via email to