What does this error message mean

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I can find neither hide nor hair of my previous post,

so this one gets a bit less effort.

I got the following message from AS7:

Error        undefined reference to `LavaNfc::ProgramLavaTag(int)::__c'    FrontBoard    C:\Users\hennebry\Documents\projects\msi-lava-front-board\LavaFrontBoard\FrontBoard\Debug\Libraries\LAVA_NFC\LavaNfc.o    1

 

What does LavaNfc::ProgramLavaTag(int)::__c mean?

LavaNfc::ProgramLavaTag(int) is a method of class LavaNfc.

LavaNfc::ProgramLavaTag(int)::__c ???

"SCSI is NOT magic. There are *fundamental technical
reasons* why it is necessary to sacrifice a young
goat to your SCSI chain now and then." -- John Woods

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you asking about the "__c" part? My first thought was that it's the "name mangling" that C++ does.

 

Can we see the method declaration and header of method implementation?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JohanEkdahl wrote:
My first thought was that it's the "name mangling" that C++ does.

..but it looks like I was wrong.

 

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The implementation begins like this:

boolean LavaNfc::ProgramLavaTag(int drapeW)
{

The declaration is

class {
    ...
    boolean ProgramLavaTag(int drapeW) ;
    ...
} ;

I'm dancing on the edge of an NDA here.

I'm hoping some one understands the syntax.

Is there something that will tell me where (a line number perhaps) the supposed reference is?

"SCSI is NOT magic. There are *fundamental technical
reasons* why it is necessary to sacrifice a young
goat to your SCSI chain now and then." -- John Woods

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@Johan we did this goose chase half a year back: https://www.avrfreaks.net/forum/linker-error-importing-project-arduino

 

 

TL;DR this seems to boil into https://gcc.gnu.org/bugzilla/sho...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

Last Edited: Fri. Jan 5, 2018 - 04:23 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@Morten: Nice to see you youngsters still having your excellent memory intact. (-:

 

@all: Here's Mortens link - fixed: https://www.avrfreaks.net/forum/l...

 


 

EDIT: @Morten: LOL! I've been searching for that thread several times. "What was that thing about class without implementation, and what was the name Morten gave for it?". I failed to locate it several times, abut thought it wasn't important enough to put in a more serious effort. Some things solve themselves given enough time.. (-:

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

Last Edited: Fri. Jan 5, 2018 - 04:06 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Derp, updated post with link that links

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Maybee start with changing "boolean" to "bool".

 

skeeve wrote:
Is there something that will tell me where (a line number perhaps) the supposed reference is?

Do a grep (text search funcion) in your source code directory.

Doing magic with a USD 7 Logic Analyser: https://www.avrfreaks.net/comment/2421756#comment-2421756

Bunch of old projects with AVR's: http://www.hoevendesign.com