Welcome, Guest. Please login or register.

Author Topic: undefined reference to utilitybase or something....and about a few errors...  (Read 964 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show all replies
Guess I'm invading these forums :-) I'm getting an error like that about amiga.lib in the linking stage now...

There was another error left that complained about invalid types for assignment  in the following assignment for a Tagitem array's tagitem (the name for the CreateNewProc() function):
 
Code: [Select]
TagsforCrtNewPr[1].ti_Data = Buffertaskname

I have defined Buffertaskname as:
Code: [Select]
char *Buffertaskname = "MDBuffer";

I solved this with casting Buffertaskname to ULONG in the previous assignment. Is this correct?

Oh, and this:

Code: [Select]
printf("Exec Version is %d.%d\n",SysBase->LibNode.lib_Version,SysBase->LibNode.lib_Revision)

gets a warning saying that the string is suspicious :-)

Bare with me a little 8-)
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show all replies
@Piru
Hey:-)

@all

Been trying but still getting that "undefined reference to utilitybase error".

I have opened utility.library and put the base in a variable declared as:
 
Code: [Select]
struct Library *UtilityBase; so that's not the error.
Error checking to check if the library is opened is also included...
\\"We made Amiga, they {bleep}ed it up\\"