c - difference of compiler between macOS and linux? -
i learning c language, , school put assignments on myth, every time have log in ssh , execute command remotely. want download files , execute them on own macbook. when use make command compile files, got errors , warnings such :
gcc -g -o0 -std=gnu99 -wall $warnflags -m32 -c -i. vectest.c -o vectest.o warning: unknown warning option '-wlogical-op'; did mean '-wlong-long'? vectest.c:10:10: fatal error: 'error.h' file not found #include <error.h>”
i googled these problems not find satisfactory answer. can me solve ? or have use linux machine instead?
indeed; compilers various platforms (even if it's "same" compiler, such gcc) may have different flags , behaviors. may able work - remove -wlogical-op
flag $warnflags
in makefile
, if error.h
file system-supplied header file, you're in trouble. therefore, suggest download e.g. virtualbox , run linux on it.
Comments
Post a Comment