Menu

#2 missing string header include file

open
nobody
None
5
2010-12-28
2010-12-28
myfanwy
No

include/amber.h should include:
#include <string.h>
to compile

error received:

c++ -O2 -Iinclude/ -Wall -Wno-deprecated -c src/amber.cpp -o src/amber.o
src/amber.cpp: In function ‘int main(int, char**)’:
src/amber.cpp:137: error: ‘strcmp’ was not declared in this scope
src/amber.cpp: In function ‘void readConfigFile(char*)’:
src/amber.cpp:196: error: ‘strlen’ was not declared in this scope
src/amber.cpp:200: error: ‘strchr’ was not declared in this scope
src/amber.cpp:215: error: ‘strcmp’ was not declared in this scope
src/amber.cpp:219: error: ‘strcmp’ was not declared in this scope
make: *** [build] Error 1

on running 'make', before adding the correct line

Discussion


Log in to post a comment.