Trying to compile and run the demo server project on code blocks. Please refer to the attached error.
||=== Build: Debug in BACnet Library (compiler: GNU GCC Compiler) ===|
||=== Build: Debug in BACnet Server Demo (compiler: GNU GCC Compiler) ===|
D:\bacnet\bacnet-stack-0.8.5\bacnet-stack-0.8.5\demo\object\device.c|78|warning: 'timezone' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]|
D:\bacnet\bacnet-stack-0.8.5\bacnet-stack-0.8.5\demo\server\main.c||In function 'main':|
D:\bacnet\bacnet-stack-0.8.5\bacnet-stack-0.8.5\demo\server\main.c|160|warning: unused variable 'recipient_scan_tmr' [-Wunused-variable]|
obj\Debug\object\device.o:device.c:(.data+0x430)||undefined reference toOctetString_Value_Init'| obj\Debug\object\device.o:device.c:(.data+0x434)||undefined reference to
OctetString_Value_Count'|
obj\Debug\object\device.o:device.c:(.data+0x438)||undefined reference toOctetString_Value_Index_To_Instance'| obj\Debug\object\device.o:device.c:(.data+0x43c)||undefined reference to
OctetString_Value_Valid_Instance'|
obj\Debug\object\device.o:device.c:(.data+0x440)||undefined reference toOctetString_Value_Object_Name'| obj\Debug\object\device.o:device.c:(.data+0x444)||undefined reference to
OctetString_Value_Read_Property'|
obj\Debug\object\device.o:device.c:(.data+0x448)||undefined reference toOctetString_Value_Write_Property'| obj\Debug\object\device.o:device.c:(.data+0x44c)||undefined reference to
OctetString_Value_Property_Lists'|
obj\Debug\object\device.o:device.c:(.data+0x46c)||undefined reference toPositiveInteger_Value_Init'| obj\Debug\object\device.o:device.c:(.data+0x470)||undefined reference to
PositiveInteger_Value_Count'|
obj\Debug\object\device.o:device.c:(.data+0x474)||undefined reference toPositiveInteger_Value_Index_To_Instance'| obj\Debug\object\device.o:device.c:(.data+0x478)||undefined reference to
PositiveInteger_Value_Valid_Instance'|
obj\Debug\object\device.o:device.c:(.data+0x47c)||undefined reference toPositiveInteger_Value_Object_Name'| obj\Debug\object\device.o:device.c:(.data+0x480)||undefined reference to
PositiveInteger_Value_Read_Property'|
obj\Debug\object\device.o:device.c:(.data+0x484)||undefined reference toPositiveInteger_Value_Write_Property'| obj\Debug\object\device.o:device.c:(.data+0x488)||undefined reference to
PositiveInteger_Value_Property_Lists'|
obj\Debug\object\device.o:device.c:(.data+0x4a8)||undefined reference toSchedule_Init'| obj\Debug\object\device.o:device.c:(.data+0x4ac)||undefined reference to
Schedule_Count'|
obj\Debug\object\device.o:device.c:(.data+0x4b0)||undefined reference toSchedule_Index_To_Instance'| obj\Debug\object\device.o:device.c:(.data+0x4b4)||undefined reference to
Schedule_Valid_Instance'|
obj\Debug\object\device.o:device.c:(.data+0x4b8)||undefined reference toSchedule_Object_Name'| obj\Debug\object\device.o:device.c:(.data+0x4bc)||undefined reference to
Schedule_Read_Property'|
obj\Debug\object\device.o:device.c:(.data+0x4c0)||undefined reference toSchedule_Write_Property'| obj\Debug\object\device.o:device.c:(.data+0x4c4)||undefined reference to
Schedule_Property_Lists'|
||error: ld returned 1 exit status|
||=== Build failed: 25 error(s), 2 warning(s) (0 minute(s), 6 second(s)) ===|
I am unable to find OctetString_Value_Init declaration or body inside the device.c file. Is there something I am missing that is not mentioned in documentation on how to compile the code in code blocks?
thanks
Imran
Anonymous
Hi,
Some missing files into your makefile : have a look to bacnet-stack /demo /object : octet_string : osv.h & osv.c, positive_integer : piv.h & piv.c ... or removes the corresponding objectsfrom the device.c code.
Bye