|
Register or have you forgotten your password?
|
|
|
| Amiga OS -- Development This particular forum deals with issues regarding development for all versions of AmigaOS. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||||||||
|
Beginner
![]()
Join Date: May 2007
Location: San Diego
Posts: 39
|
I recently installed VBCC to start working on some Amiga software. It seems to work fine the first time I use it. After that it causes a guru crash and forces me to reboot to get another compile out of it.
Is this program just not very stable or did I maybe do something wrong installing it? I have a stock Amiga 1200 except for a 4 MB RAM expansion. If this is typical for vbcc, is there a more stable compiler that someone can recommend? I tried gcc a bit but was unable to get it installed correctly. |
||||||||
|
|
|
|
|
#2 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Jun 2002
Posts: 2,936
|
Increase stack size. I use VBCC for quite some time now and it has been completely stable. My stack size is 40000 bytes. You can also try Dice C as an alternative for low-end machines. Bye, Thomas |
||||||||
|
|
|
|
|
#3 | ||||||||
|
Beginner
![]()
Join Date: May 2007
Location: San Diego
Posts: 39
|
Wow, that seems to have fixed it...I can compile multiple times without crashing, thanks a bunch
.Now that I can play around a bit, another question came up. I tried doing some floating point math in my test program (I have no FPU, I figured it would be emulated) and I'm getting link errors for several symbols related to that(like __ieeemuld). What lib do I need to link in to get floating point to work and what's the command line argument look like to do that? Thanks again! |
||||||||
|
|
|
|
|
#4 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Jun 2002
Posts: 2,936
|
-lmieee Bye, Thomas |
||||||||
|
|
|
|
|
#6 | |||||||||
|
Slacker
Join Date: May 2003
Location: San Francisco, California, US
Posts: 1,514
|
There's a note about stack size in section 1.3.3 of the manual <http://www.ibaug.de/vbcc/doc/vbcc.html>:
Quote:
__________________
Sam440ep-flex 733 MHz/1 GB RAM/Radeon 9250/AmigaOS4.1 Update 2 borked A1200/Blizzard1260+SCSI-IV/Z4+MediatorZIV/Deneb/Voodoo3/CatweaselMk3 more borked A1200/MBX1200z/Indivision A500/clockport/RRNet A600/A603 Power Mac G4 QuickSilver/MorphOS 2.6 |
|||||||||
|
|
|
|
|
#7 | ||||||||
|
Beginner
![]()
Join Date: May 2007
Location: San Diego
Posts: 39
|
I hope no one minds if I use this thread to post questions as I learn to set up my little programming environment
![]() I downloaded the Amiga C Manual from here: http://www.amigau.com/c-programming/C/ctut.htm which comes with several simple programs. I'm trying to compile the first example program in the ACM1/Windows/ directory and ran into two problems. The first was that the compiler couldn't find the include <intuition/intuition.h>. I looked through the files that came with VBCC and found intuition.h in the m68k-amigaos/include/proto directory and tried including that instead. Unfortunately, this header file tries to include exec/types.h, which doesn't seem to exist in the VBCC directories. So, where can I get this file from and what else might I be missing? I just want to get a nice working development environment here so I can learn Amiga graphics and windows programming ![]() Thanks! |
||||||||
|
|
|
|
|
#8 | ||||||||
|
Kindred of Babble-on
![]()
Join Date: Jun 2002
Posts: 2,936
|
Obviously you are missing the complete AmigaOS system includes. These have to be installed seperately and *before* VBCC is installed. During installation of VBCC's 68k target you are asked where the system include files are. For example you can get the navive development kit (NDK) of OS 3.9 from http://www.haage-partner.de/download/AmigaOS/ If you unpack it to Work: the needed include files are in Work:NDK_3.9/include/include_h Now that you already have installed VBCC, check your s:user-startup file. There should be a section which after correction of the include path should look like this: ;BEGIN vbcc-m68k-amigaos assign >NIL: vincludeos3: vbcc:targets/m68k-amigaos/include assign >NIL: vincludeos3: Work:NDK_3.9/Include/include_h add assign >NIL: vlibos3: vbcc:targets/m68k-amigaos/lib ;END vbcc-m68k-amigaos Bye, Thomas |
||||||||
|
|
|
|
|
#9 | ||||||||
|
Beginner
![]()
Join Date: May 2007
Location: San Diego
Posts: 39
|
Thanks again Thomas, I'm sure that's the problem. I should have mentioned before that I'm using WB 3.1. Do you know where I might be able to find the development kit for that version?
|
||||||||
|
|
|
|
|
#10 | ||||||||
|
' union select name,pwd--
Join Date: Aug 2002
Location: Helsinki, Finland
Posts: 6,946
|
@Merax
Development kits work for all the earlier OS versions. You can use the AmigaOS 3.9 NDK. |
||||||||
|
|
|
|
|
#11 | ||||||||
|
Beginner
![]()
Join Date: May 2007
Location: San Diego
Posts: 39
|
Thanks all, I am able to compile the examples now
|
||||||||
|
|
|
![]() |
| Bookmarks |
| Tags |
| unstable , vbcc |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| G-Rex + Voodoo3 + (Heat?) = Very unstable? | arnljot | Amiga Hardware Issues and discussion | 10 | 05-23-2009 06:01 PM |
| DENEB in -> ahi.device unstable??? | amiwalker | Amiga Software Issues and Discussion | 6 | 06-05-2008 07:29 AM |
| STFax very unstable :( | AmigaMance | Amiga Software Issues and Discussion | 10 | 12-24-2007 01:24 PM |
| My very unstable amiga | Gav | Amiga Hardware Issues and discussion | 16 | 10-08-2007 12:30 AM |
| PPC very unstable | awe4k | Amiga Software Issues and Discussion | 10 | 01-08-2005 11:52 AM |