Go Down

Topic: 'Undefined Reference to' Error (Read 137 times) previous topic - next topic

Drackoy2

Feb 10, 2018, 02:19 am Last Edit: Feb 10, 2018, 03:03 am by Drackoy2
Hi guys, I seem to be having a compilation error in my ArdOS-based GUI.

Since I'm pretty sure it isn't a problem with my code I'll only post the libraries I used and the error message. I'll post my code if requested.

I'm using an Arduino Mega with Arduino IDE 1.6.9

The goal of my code is to provide a modular GUI that works with ArdOS.

I'm only using the ArdOS libraries, and the 4 basic libraries for my LCD.


Code: [Select]
#include <kernel.h>
#include <mutex.h>
#include <queue.h>
#include <sema.h>
#include <SD.h>
#include <SPI.h>
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9340.h"


The Error Message


Code: [Select]


Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\****\AppData\Local\Temp\ccZUWkVp.ltrans2.ltrans.o: In function `OSPrioSwapFromISR()':

ccZUWkVp.ltrans2.o:(.text+0xbe): undefined reference to `pxCurrentTCB'

ccZUWkVp.ltrans2.o:(.text+0xc2): undefined reference to `pxCurrentTCB'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.




I know where to find the OSPrioSwapFromISP() function (kernel.cpp), but I dont know how to fix it.

I've seen many errors similar to this but couldn't find any relating to ArdOS or this function.

I'm not sure what the ccMA1ADJ.ltrans2.ltrans.o file is, I couldn't find it.

What do I need to do to link the proper .o file or what can I do to stop the file from being linked in the first place?

Any help would be greatly appreciated and I will provide any additional info if requested.

pert

I know where to find the OSPrioSwapFromISP() function (kernel.cpp), but I dont know how to fix it.
And where is kernel.cpp?

Drackoy2

#2
Feb 10, 2018, 02:57 am Last Edit: Feb 10, 2018, 03:03 am by Drackoy2
C:\Users\****\Documents\Arduino\libraries\ArdOS-v09b\kernel.cpp

The other ArdOS libraries are in this folder as well.

Go Up