How do you add libraries to Eclipse CDT? (No such file or directory)

后端 未结 5 2062
梦谈多话
梦谈多话 2021-01-19 12:27

I\'m having some issues adding header libraries.

I right click on my project, and click Properties-> C/C++ General-> Paths and Symbols.

In

5条回答
  •  情深已故
    2021-01-19 13:12

    Solved by adding -I to makefile.

    BOOST =     C:/Users/neo/Documents/boost_1_52
    
    CXXFLAGS =  -O2 -g -Wall -fmessage-length=0 -I$(BOOST)
    
    OBJS =      p1.o
    
    LIBS =      
    
    TARGET =    p1.exe
    
    
    $(TARGET):  $(OBJS)
        $(CXX) -o $(TARGET) $(OBJS) $(LIBS)
    
    all:    $(TARGET)
    
    clean:
        rm -f $(OBJS) $(TARGET)
    

提交回复
热议问题