123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|645|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> undefined reference to...

Wed, 26 Nov 2014, 01:06
spinal
It's that time again to distract myself with something I know very little about because nobody else seems to be doing it (yet).
I'm attempting to do a horrible quick port of frodoDS to the 3DS, I figured the DS version was a good place to start as most of the hard work will be done already, however once I updated devkitpro it doesn't compile so good. I'm getting the following..



which relates to C64.cpp...


Now some of you know, I've completely avoided objects for the last [insert amount of years] because I just don't like them, as a result I find myself needing a little help overcoming this little problem. Can any of you wonderful coders help me past this little issue?

Thanks in advance,
Your friend,

Spinal.

-=-=-
Check out my excellent homepage!
Wed, 26 Nov 2014, 02:45
Afr0
Been a while since I worked with C++, but these look like linker errors to me. Since C64 includes both VIC.h and IEC.h, including C64.h will probably only make things worse.
Are your headers guarded?

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Wed, 26 Nov 2014, 04:57
spinal
at a quick glance all the headers seem to be guarded.

-=-=-
Check out my excellent homepage!
Wed, 26 Nov 2014, 09:53
Afr0
You really should try gamedev.net or cplusplus.com, much higher signal to noise ratio.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Wed, 26 Nov 2014, 12:44
HoboBen
It's a linker error. The headers are fine but when it's putting together the final program it can't find the actual implementations of the things you are getting undefined references for.

So you either need to add a library to your project, or otherwise compile it with another file implementing those functions. Exactly which files I don't know sorry.

-=-=-
blog | work | code | more code
Mon, 29 Dec 2014, 13:59
spinal
I now have the code (starting at least) to run on the 3DS. It's running all the way up to line 15, cycle 63, which from what I've been able to work out from dustlayer.com/vic-ii/2013/4/25/vic-ii-for-beginners-beyond-the-screen-rasters-cycle is that this gets me through the vblank part of the screen refresh and up to the point of actually putting some gfx somewhere. However, it's at this point that the whole program crashes out and drops me back in the 3DS home menu.

Does anyone here know much about either C64 or 3DS to help me out as to some reasons for failing at this point?

current source - https://socoder.net/uploads/124/_FrodoDS-source.zip

-=-=-
Check out my excellent homepage!