English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 05 July 2007, 17:39   #1
frotzen
 
Posts: n/a
Question OS 3.9 Includes headers missing(as installed from NDK3.9)

I installed the NDK3.9 and took a look in the includes_h path.

/* My familiarity with includes paths is just what ever has been installed by the devopment package (SAS/C). I've never actually used an NDK before or generated header files using scripts.*/

To my surprise, I have no ../math.h, ../stdio.h, or any ../xxx.h for that matter. The only things I have are directories. My guess is that I haven't run a script that is hidden somewhere. Of course, there is no documentation telling me to do so, and I am at a loss on this one.

This is probably an extremely easy one for the gurus, but any info on this is appreciated.

Thanks
 
Old 05 July 2007, 19:44   #2
rgen
Registered User
 
rgen's Avatar
 
Join Date: Mar 2002
Location: Aachen/Germany
Age: 46
Posts: 190
Send a message via ICQ to rgen
The NDK contains only the Amiga stuff. stdio, math etc. is part of the definition of the C language and supplied with the compiler or replacement C run time libraries.
rgen is offline  
Old 06 July 2007, 22:11   #3
frotzen
 
Posts: n/a
Quote:
Originally Posted by rgen
The NDK contains only the Amiga stuff. stdio, math etc. is part of the definition of the C language and supplied with the compiler or replacement C run time libraries.
So if I want to set up a SAS/C environment to use the NDK3.9 includes, do I need to replace the existing SAS/C includes sub-drawers with the ones from the NDK3.9 and leave the math.h, stdio.h, etc., alone? Or are the SAS/C include sub-drawers also part of the C definitions?

-->include //this is the main include drawer in the SAS env
|
|---- stdio.h
math.h //these are headers in SAS include drawer
time.h //defining C
string.h
.
.
-->clib
-->dos //these are the sub-drawers in the SAS
-->intuition //include drawer (specific to Amiga?).
-->harware //can I replace these with NDK3.9 drawers?
.
.
Not sure what I should do here.<img> I read many of the files in the NDK3.9, but none explain how to actually use the Amiga includes supplied with it.

I assume there are at least a few ways of doing this:

1) using #include "NDK3.9:include/include_h/sub-drawer/xxxxxx.h"
2) generating a new set of NDK3.9 includes using a script or tool
3) using compiler options to point to the alternate NDK3.9 includes
4) just copy NDK3.9:include/include_h/#? to the SC:include drawer

Ultimately, I would like to have 3.9 includes as the default so I can just use something like #include <stdio.h> and be sure stdio.h is referencing the 3.9 includes.
 
Old 06 July 2007, 23:16   #4
rgen
Registered User
 
rgen's Avatar
 
Join Date: Mar 2002
Location: Aachen/Germany
Age: 46
Posts: 190
Send a message via ICQ to rgen
You can replace the drawers in SAS/C's include with the drawers from the NDK and keep the files in the main dir.

To use the them just include the proto/xxx.h files for the definition of the function calls and the other includes for the definition of the structures and constants.
rgen is offline  
Old 09 July 2007, 02:40   #5
frotzen
 
Posts: n/a
Ok, thanks... I'll give it a go.
 
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
A1200 rev1a add clockport headers OverDose support.Hardware 1 04 April 2011 03:24
removing xpk headers? h0ffman Coders. General 3 23 December 2010 23:00
Includes kristofferj Coders. General 3 03 May 2010 15:38
EXE headers Asle request.Other 3 29 July 2006 15:11
Please avoid xDMS with files which contain headers andreas project.TOSEC (amiga only) 5 31 March 2006 16:47

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 01:57.

Top

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