Codebench / Compiling example in SDK

4 posts / 0 new
Last post
djrikki
djrikki's picture
Offline
Last seen: 1 year 3 weeks ago
Joined: 2011-01-14 23:02
Codebench / Compiling example in SDK
Hi, I was hoping someone could give me a definitive answer to why this example program included in the SDK which opens a simple window with a button in it won't compile in Codebench? IMAGE(http://www.amigaos.net/codebench0_compileerror.png) Click here to open image Yes I installed the SDK before installing Codebench. And do I really need to include the headers in the interface? Off-topic: Also the Create Dictionary feature doesn't work it stops at 10%.
djrikki
djrikki's picture
Offline
Last seen: 1 year 3 weeks ago
Joined: 2011-01-14 23:02
And for kicks if I uncomment
And for kicks if I uncomment the gcc run code in main.c I get a whole mess of new errors: IMAGE(http://www.amigaos.net/buildwindow.png) Click here for image
AmigaOS.net - Discover Amiga, Discover AmigaOS.net Jack for AmigaOS Samba Idiot's Guide
kas1e
kas1e's picture
Offline
Last seen: 2 months 2 weeks ago
Joined: 2010-11-30 15:30
As i see in your output log
As i see in your output log (build window), your compilation string not have -lauto (which you need to add all the time). -lauto mean including of stab library caleld libauto.a, to make all that IIxxxxxx and other references works. In other words you can just go to shell and type "gcc window.c -o window -lauto", or just add in codebench to build string -lauto. ps. What you mean by "gcc run code in main.c" ? Imho in your case main.c file just a source file, without any specific reles to compilator. Its you later choice by which compiler compile a objects/binary (by gcc, or by vbcc, or any other).
djrikki
djrikki's picture
Offline
Last seen: 1 year 3 weeks ago
Joined: 2011-01-14 23:02
Strange I tried that earlier
Strange I tried that earlier after reading the SDK header notes. I think I screwed up the build script. All working now, your a star, cheers chief. Ps. I fixed KingCon btw.
AmigaOS.net - Discover Amiga, Discover AmigaOS.net Jack for AmigaOS Samba Idiot's Guide
Log in or register to post comments