[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Makefile, compileroptions tilføjes ikke



Som det ses nedenunder tilføjes mine compiler options ikke. Hvorfor ikke?
Jeg har ikke sat CXX, og jeg har ikke angivet source filer så hvordan kan make vide at sourcefilen er busmaster.c ?

$ cat Makefile
CXXFLAGS =      -O2 -g -Wall -fmessage-length=0 -std=c99


OBJS =          busmaster.o

LIBS =

TARGET =        busmaster.exe

$(TARGET):      $(OBJS)
        $(CXX) $(TARGET) $(OBJS) $(LIBS)

all:    $(TARGET)

clean:
        rm -f $(OBJS) $(TARGET)

sslug@sslug /cygdrive/c/Users/dbj/workspace/test
$ make
cc    -c -o busmaster.o busmaster.c
busmaster.c: In function 'supevice_connect':
busmaster.c:29: error: 'for' loop initial declaration used outside C99 mode
busmaster.c:31: error: dereferencing pointer to incomplete type
busmaster.c:31: error: 'struct dev_info' has no member named 'add'
busmaster.c: In function 'main':
busmaster.c:58: error: 'for' loop initial declaration used outside C99 mode
busmaster.c:60: error: 'for' loop initial declaration used outside C99 mode
make: *** [busmaster.o] Error 1


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2010-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *