Error using mongoose from a library #2708
-
I am getting a rather odd error when trying to build from a mongoose library. Basically I built mongoose into a library (using the mongoose make file, target linux_libs or something like that) and I am going to link to it. I do this because I need to keep our OSS out of our repo and separate for legal reasons. When I do this, I get the below build issues. You will note it is finding mongoose.h (not throwing an error not finding the header file), but not anything defined in it. But if I put mongoose.h in the directory next to main.c, then it builds main.c just fine. What am I missing here? My read of the header say I don't need to pass anything to the header for it to build correctly on linux x86/64. Thanks, /u/gcc-13.2.0-linux_x86_64/bin/gcc -D_FILE_OFFSET_BITS=64 -MMD -MP -g -gdwarf-4 -m64 -fPIC -O3 -g -gdwarf-4 -m64 -fPIC -O3 -DNGU_BETA=1 -DNGU_DEBUG=0 -DNGU_GE_DEBUG=0 -DNGU_VIS_DEBUG=0 -DNGU_BETA=1 -Wall -Wredundant-decls -Wpacked -Wmissing-noreturn -Wsign-compare -Wconversion -Wundef -Wshadow -funit-at-a-time -Wtype-limits -I/u/oss/valijson/1.0/include -isystem /u/oss/boost/1.78/gcc-11.2.0/include -isystem /u/oss/hocon/0.3.0/gcc-11.2.0/include -isystem /u/oss/leatherman/1.4.0/gcc-11.2.0/include -isystem /u/oss/icu/50.2/gcc-11.2.0/include -fcompare-debug-second -I/u/oss/mongoose/7.12/gcc-13.2.0/usr/local/include -I/u/oss/cJSON/1.7.17/gcc-5.3.0/include -I/u/NextGenUI/src/include -I/u/NextGenUI/src/gui -I/u/NextGenUI/src/server -I/u/NextGenUI/build/tmp/linux_x86_64 -I/u/NextGenUI/build/tmp/linux_x86_64 -c /u/NextGenUI/src/server/main.c -o /u/NextGenUI/build/tmp/linux_x86_64/main.o |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
We have an extensive documentation, and a rather huge set of examples. Please follow the guidelines in the documentation, examples and tutorials available. |
Beta Was this translation helpful? Give feedback.
We have an extensive documentation, and a rather huge set of examples.
All the examples are built on every push, and on every night we build on LInux, Mac, Windows, for Arm Cortex-M, ESP32.
It is impossible for me to know what you are doing or not doing if I don't see what you are doing (or not doing). Besides that, we don't check user code.
We are talking here of 2 files: a c file that has to be on your compiler path (now a library file on your linker path), and a header file that has to be on your include path.
The only thing that I can possibly come up with is that, for some reason, your architecture is not being detected and some functions not included. If that is the case, you should…