I am having an issue with accessing functions in 1 source file from multiple other source files. I have included my entire source directory, as I’m not really sure where the error is. The function I want to call are in uip_task.c, and they are called from both terminal.c and presets.c. The functions are called properly from terminal.c, but not from presets.c. I have included the compile log below. The first warning happens even with the tutorials, but doesn’t seem to be causing any problems. The errors at the end are the problem that I’m having. I’m guessing it’s an issue with an include somewhere, but as far as I can tell, it’s all seems correct.
Aarons_Macbook_Pro:ArtNet Node aaron$ make
rm -f project.hex
Creating object file for app.c
Creating object file for terminal.c
terminal.c: In function ‘TERMINAL_Init’:
terminal.c:55:2: warning: passing argument 1 of ‘MIOS32_MIDI_DebugCommandCallback_Init’ from incompatible pointer type
/Users/aaron/svn/mios32/trunk/include/mios32/mios32_midi.h:253:12: note: expected ‘s32 (*)(enum mios32_midi_port_t, char)’ but argument is of type ‘s32 (*)(enum mios32_midi_port_t, u8)’
Creating object file for presets.c
Creating object file for shell.c
Creating object file for main.c
Creating object file for tasks.c
Creating object file for list.c
Creating object file for queue.c
Creating object file for port.c
Creating object file for umm_malloc.c
Creating object file for startup_LPC17xx.c
Creating object file for mios32_srio.c
Creating object file for mios32_din.c
Creating object file for mios32_dout.c
Creating object file for mios32_enc.c
Creating object file for mios32_lcd.c
Creating object file for mios32_midi.c
Creating object file for mios32_osc.c
Creating object file for mios32_com.c
Creating object file for mios32_uart_midi.c
Creating object file for mios32_iic_midi.c
Creating object file for mios32_iic_bs.c
Creating object file for mios32_mf.c
Creating object file for mios32_sdcard.c
Creating object file for mios32_enc28j60.c
Creating object file for mios32_bsl.c
Creating object file for mios32_sys.c
Creating object file for mios32_irq.c
Creating object file for mios32_spi.c
Creating object file for mios32_i2s.c
Creating object file for mios32_board.c
Creating object file for mios32_timer.c
Creating object file for mios32_stopwatch.c
Creating object file for mios32_delay.c
Creating object file for mios32_ain.c
Creating object file for mios32_usb.c
Creating object file for mios32_usb_midi.c
Creating object file for mios32_usb_com.c
Creating object file for mios32_uart.c
Creating object file for mios32_iic.c
Creating object file for printf-stdarg.c
Creating object file for core_cm3.c
Creating object file for usbhw_lpc.c
Creating object file for usbcontrol.c
Creating object file for usbstdreq.c
Creating object file for usbinit.c
Creating object file for app_lcd.c
Creating object file for glcd_font_big.c
Creating object file for glcd_font_small.c
Creating object file for glcd_font_normal.c
Creating object file for glcd_font_knob_icons.c
Creating object file for glcd_font_meter_icons_h.c
Creating object file for glcd_font_meter_icons_v.c
Creating object file for uip.c
Creating object file for uip_arp.c
Creating object file for uiplib.c
Creating object file for psock.c
Creating object file for timer.c
Creating object file for uip-neighbor.c
Creating object file for memb.c
Creating object file for clock-arch.c
Creating object file for network-device.c
Creating object file for lpc17xx_emac.c
Creating object file for eeprom.c
Creating object file for mini_cpp.cpp
Creating object file for freertos_heap.cpp
project_build/presets.o: In function `PRESETS_StoreAll’:
/Users/aaron/Documents/Projects/ArtNet Node/presets.c:96: undefined reference to `UIP_TASK_DHCP_EnableGet’
/Users/aaron/Documents/Projects/ArtNet Node/presets.c:97: undefined reference to `UIP_TASK_IP_AddressGet’
/Users/aaron/Documents/Projects/ArtNet Node/presets.c:98: undefined reference to `UIP_TASK_NetmaskGet’
/Users/aaron/Documents/Projects/ArtNet Node/presets.c:99: undefined reference to `UIP_TASK_GatewayGet’
project_build/presets.o: In function `PRESETS_Init’:
/Users/aaron/Documents/Projects/ArtNet Node/presets.c:52: undefined reference to `UIP_TASK_InitFromPresets’
collect2: ld returned 1 exit status
make: *** [project_build/project.elf] Error 1
Aarons_Macbook_Pro-3:ArtNet Node aaron$