Decided I wanted to get into C on the TI-84+CE... wrote 3 lines of code and I'm already stuck.


Code:
/* Keep these headers */
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <tice.h>

/* Standard headers */
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/* Put function prototypes here */
void *os_RclAns(uint8_t *type);

/* Put all your code here */
void main(void) {
    uint8_t type;
    void *data;
    data = os_RclAns(&type);
}


It gives me this error:


Code:
/home/amihart/Documents/CEdev/include/fasmg-ez80/ld.fasmg [661] macro import [560] macro handle [5] macro parse [243] obj/main.src [52]:
   XREF _os_RclAns:ROM
macro ? [6] macro XREF [2] macro XREF [5] macro ? [1]:
   . def
Processed: . := global._os_RclAns
Error: symbol '_os_RclAns' is undefined or out of scope.


No clue what this means... Anyone have any ideas?
os_RclAns really shouldn't be used, and also you shouldn't copy prototypes like that Razz I'll fix that error in the next release. To get a variable in answer, take a look at this example: https://github.com/CE-Programming/toolchain/blob/master/examples/fileio_factorize/src/main.c#L29
MateoConLechuga wrote:
os_RclAns really shouldn't be used, and also you shouldn't copy prototypes like that Razz I'll fix that error in the next release. To get a variable in answer, take a look at this example: https://github.com/CE-Programming/toolchain/blob/master/examples/fileio_factorize/src/main.c#L29

Well at first I didn't copy it like that but the program refused to work so I was just trying different things. :p
I usually used RclAns when coding in assembly so it was the first thing I thought of trying.

Thanks for the response I will just use that method for now.
Makes sense. There is now a new release of the toolchain which resolves this issue in addition to other fixes and improvements. Enjoy, and good luck!

https://github.com/CE-Programming/toolchain/releases/latest
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement