![]() It never even gets referenced by the linker.Įvidently this makes perfect sense to the Code:Blocks folks and we humans are supposed to deal with such minutia instead of the tools doing it for us. o file should be present (but isn't) and added to the linking process. Neither does the linker seem to figure out the. The GCC compiler doesn't 'run down' all the. Thanks to Swpolo providing me a build log to compare, and after realizing it worked for him because he directly added the file RF24.cpp to his project - I figure out the real problem. ![]() I seem to be making sense out of this, to an extent. I just hate the damn primitive user interface and much rather would use C::B if I could sort this out. Lastly, the RF24 libraries are there and I have build sketches many times through the Arduino IDE without trouble. ![]() But of course, that's not suitable for uploading into an Arduino (doesn't even create the. I would also add that if I change the compiler to be "GNU GCC Compiler" The undefined reference goes away, presumably the definition of uint8_t is getting resolved. I assume it fails gracefully and assumes a char data type.Ĭan someone please look at the attached verbose output of the compilation and perhaps glean a clue what is possibly being overlooked? Surely I just have the library search paths wrong bit sheesh there are dozens of places to set them and I can't isolate where it's wrong. Which I infer is because it cannot resolve uint8_t as an integer. Undefined reference to `RF24::RF24(unsigned char, unsigned char)' You will notice I added the nRF2401 stuff. Pin 13 has an LED connected on most Arduino boards:ĭigitalWrite(13, HIGH) // set the LED onĭigitalWrite(13, LOW) // set the LED off initialize the digital pin as an output. Turns on an LED on for one second, then off for one second, repeatedly. My simple sketch, which I could build, upload and run to blink the LED on an Uno (plus some lines I added afterwards): #include Or, at least, one that uses the nRF2401 library from Maniac Bug. My dilemma is that I cannot build anything that utilizes a library. It's so much nicer user-wise than the standard Arduino IDE. This is a longshot, as it's a rather open ended question but I've taken a stab at building a simple sketch using the C::B IDE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |