Welcome, Guest. Please login or register.

Author Topic: Is this "Invalid types for assignment" freaking out?  (Read 2183 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
Is this "Invalid types for assignment" freaking out?
« on: September 04, 2004, 07:22:18 PM »
A piece of code similar to the initialization part of a bigger proggie I'm trying to make, wich gets that error, is below.
Stupidly enouph I'm getting that message with any library I open.
Dunno if it's the same thing, but I'm also getting "dereferenced object is incomplet" or something like that, when I try to assign some values to a tagitem array. (But let's leave this one for later...)

What do you think the problem is :-?

Code: [Select]
#include <stdio.h>


int main (int argc, char **argv)

{

struct Library *UtilityBase;

if (!(UtilityBase=OpenLibrary (&quot;utility.library&quot;,0L)))
   {printf(&quot;couldnt open utility library\n&quot;);
   exit();}
printf(&quot;library opened successfully\n&quot;);
CloseLibrary (UtilityBase);
exit();
}
 
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
Re: Is this "Invalid types for assignment" freaking out?
« Reply #1 on: September 04, 2004, 07:38:47 PM »
 :lol:
Thx.

I'm finding it very annying to having to look around for includes everytime... :-o
\\"We made Amiga, they {bleep}ed it up\\"