![]() |
![]() |
#1 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
SAS/C: Finding the right includes to use
Just wondering, when you've got some source code sat in front of you (from someone else) and you go to compile it and get several error messages, ow do you find out what includes/header files to call in?
I've tried compiling a program that uses gadtools and GA_Disabled and every file I've tried to include fails. So, how do you find which file to include? |
![]() |
![]() |
#2 |
move $dff006,$dff180
Join Date: Feb 2014
Location: USA
Posts: 66
|
Hm, so far I did not run into much trouble compiling and did not have to hunt down errors to include files. Do you have example code I could test with?
|
![]() |
![]() |
#3 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
It's one of the topics from this forum and the subjjest was just titled "gadtools"
|
![]() |
![]() |
#4 |
move $dff006,$dff180
Join Date: Feb 2014
Location: USA
Posts: 66
|
|
![]() |
![]() |
#5 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
That's the one!
I've got my C source sat on PC0: which is pointing to a folder on my hard drive. Notepad++ is being used to edit source and I;'m jumping back into UAE to dothe compiling. |
![]() |
![]() |
#6 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,351
|
You could use the AmigaDOS Search command. For example if your include directory is DH0:SC/Include, doing
Search DH0:SC/Include ALL GA_Disabled QUIET would print the names of all files which contain that string. |
![]() |
![]() |
#7 |
(2b)||!(2b)
Join Date: Mar 2007
Location: Cranbrook, Devon, UK
Age: 50
Posts: 241
|
Awesome - thanks.
It's been years since I've got this involved in programming and bit by bit it's coming back to me ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
DevPac 3.xx Includes | souls | Coders. General | 40 | 12 March 2021 21:35 |
Includes | kristofferj | Coders. General | 3 | 03 May 2010 15:38 |
Devpac includes | Seoman | request.Apps | 2 | 15 April 2010 00:19 |
DevPac 3 and includes | Camionsauro | Coders. General | 10 | 20 April 2009 15:23 |
Devpac 3.x includes | lpopman | request.Apps | 2 | 14 November 2004 17:28 |
|
|