digidotcom / xbee_ansic_library

A collection of portable ANSI C code for communicating with Digi International's XBee wireless radio modules in API mode.
204 stars 116 forks source link

Linking issue in samples #36

Closed elphmatt closed 2 years ago

elphmatt commented 2 years ago

Probably something I've missed but I'm trying to compile the samples for the first time. I previously have install gcc (ver 5.3) with mingw and I Installed make using choco. when I run make all in the win32 directory it fails to run. The output is:

cc -std=gnu99 -g -MMD -MP -Wall -DXBEE_PLATFORM_HEADER='"../../ports/win32/platform_config.h"' -DZCL_ENABLE_TIME_SERVER -DXBEE_CELLULAR_ENABLED -DXBEE_DEVICE_ENABLE_ATMODE -DXBEE_XMODEM_TESTING -iquote../../include comports.c -o comports process_begin: CreateProcess(NULL, cc -std=gnu99 -g -MMD -MP -Wall -DXBEE_PLATFORM_HEADER=\"../../ports/win32/platform_config.h\" -DZCL_ENABLE_TIME_SERVER -DXBEE_CELLULAR_ENABLED -DXBEE_DEVICE_ENABLE_ATMODE -DXBEE_XMODEM_TESTING -iquote../../include comports.c -o comports, ...) failed. make (e=2): The system cannot find the file specified. make: *** [Makefile:33: comports] Error 2

What file is it missing? if it is comports.c why is it saying its in the include directory and if that's the case where do I change it in the makefile?

elphmatt commented 2 years ago

I redid the git clone in MSYS and it seem to work.