English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 26 July 2020, 19:34   #1
FirstNE
Registered User
 
Join Date: May 2020
Location: Norwich, CT, USA
Posts: 39
What is wrong with GT_GetIMsg call?

struct IntuiMessage *message = NULL;


struct Window *window1; (this is set by a call to OpenWindowTags elsewhere)



message = GT_GetIMsg (window1->UserPort);


I'm using vbcc and I get error 39 "invalid types for assignment". I'm befuddled and cannot see the error.
FirstNE is offline  
Old 26 July 2020, 19:59   #2
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
If I had to guess, you don't have the prototype in scope and the compiler thinks that function returns int?
alkis is offline  
Old 26 July 2020, 20:36   #3
FirstNE
Registered User
 
Join Date: May 2020
Location: Norwich, CT, USA
Posts: 39
Yep! Idiot (me) forgot the include file. <sigh> 40 years of programming and I still manage to forget the most simple things. You'd think by now....


Many thanks!
FirstNE is offline  
Old 30 July 2020, 19:44   #4
FirstNE
Registered User
 
Join Date: May 2020
Location: Norwich, CT, USA
Posts: 39
It works.....

Well, after struggling for a week or so, I finally got the orders program for Age of Sail to compile. And kind of run. Well, it asks for the ship to load and then looks at you stupidly after you select one. So it is off to debugging land I go.


But still I find it quite amazing that the AmigaForever emulation is so good it can actually compile and run a 30 year old program. What a hoot! I am just having too much fun squinting at the tiny text and quirky OS. It is just so sad that Commodore botched this wonderful OS and sold it off - at the time it was their only profitable division, as I recall. Glad I kept all the old reference books. They're a bit musty from the basement, but they still have valuable info in them.
FirstNE is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
ports of call turrican3 Nostalgia & memories 6 23 September 2019 13:01
What do you call yourself if you're not a retrogamer Starglider 2 Retrogaming General Discussion 47 06 February 2018 08:15
Let's call it karma. Or something. trooper Retrogaming General Discussion 10 19 September 2013 23:44
Ports of Call Josh request.Old Rare Games 9 21 February 2010 23:32
Call to all UK Sceners, old and new! rc55 Amiga scene 6 12 February 2008 01:41

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:42.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10638 seconds with 15 queries