jwtcpp icon indicating copy to clipboard operation
jwtcpp copied to clipboard

make install?

Open SJCaldwell opened this issue 9 years ago • 1 comments

I'm getting the following error when trying to run make after installing dependencies:

rm -f *.exe* *.o jwtcpp tests *.bak *~
g++ -o jwtcpp jwt.cpp utils.cpp -ljansson -lcryptopp -lpthread -Werror -pedantic
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
Makefile:16: recipe for target 'jwtcpp' failed
make: *** [jwtcpp] Error 1

Which seems to make sense, as there's no main function in jwt.cpp or utils.cpp. Am I missing something?

SJCaldwell avatar Oct 24 '16 14:10 SJCaldwell

On mac os x, this error is appeared:

rm -f *.exe* *.o jwtcpp tests *.bak *~
g++ -o jwtcpp jwt.cpp utils.cpp -ljansson -lcryptopp -lpthread -Werror -pedantic
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [jwtcpp] Error 1

gkhanacer avatar Aug 01 '17 10:08 gkhanacer