View previous topic :: View next topic |
Author |
Message |
Serge_A
Joined: 20 Oct 2008 Posts: 7 Location: Germany
|
Posted: Tue Oct 21, 2008 12:44 pm Post subject: SCC does not find folders |
|
|
I am beginner with FTN95. Working with Plato ver. 4.10, FTN95/Win32 ver.5.21.0
and SCC/Win32 ver.3.65. Problem is:
when *.cpp-files are to be compiled, either from Plato IDE or from command line,
SCC sees only the root directory (defined by f95include) and can not find
files laying in subfolders.
FTN95 compiles *.f* OK.
What is wrong and what shall I do?
Thank you. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Oct 21, 2008 1:54 pm Post subject: |
|
|
Can you be more specific?
What is the current folder?
Where is the file you are aiming to compile?
What is your command? |
|
Back to top |
|
 |
Serge_A
Joined: 20 Oct 2008 Posts: 7 Location: Germany
|
Posted: Tue Oct 21, 2008 2:36 pm Post subject: |
|
|
Paul
thank you answering fast
1) current folder is project work folder F:\....
2) *.for and *.cpp files are in this folder. Resource file with its include-files is in subfolder ..\res
3) the command and the answer are:
F:\2_ViSAP>scc *.cpp
[Silverfrost SCC/WIN32 Ver 3.65 Copyright (c) Silverfrost Ltd 2008]
Compiling F:\2_VISAP\BITPAINT.CPP
0007 #include <winbase.h>
*** Include file winbase.h cannot be opened
1 ERRORS [<BITPAINT> SCC/WIN32 Ver 3.65]
*** Compilation failed
Compiling F:\2_VISAP\POWERI.CPP
0006 #include <conio.h>
*** Include file conio.h cannot be opened
1 ERRORS [<POWERI> SCC/WIN32 Ver 3.65]
*** Compilation failed
Compiling F:\2_VISAP\PSDGEN.CPP
0007 #include <conio.h>
*** Include file conio.h cannot be opened
1 ERRORS [<PSDGEN> SCC/WIN32 Ver 3.65]
*** Compilation failed |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Oct 21, 2008 5:06 pm Post subject: |
|
|
You can set up an environment variable called SCCINCLUDE that works like the PATH environment variable and provides a list of "include" folders. |
|
Back to top |
|
 |
Serge_A
Joined: 20 Oct 2008 Posts: 7 Location: Germany
|
Posted: Tue Oct 21, 2008 7:30 pm Post subject: Fw: SCC does not ... |
|
|
Paul,
I tried it before sending my first message.
I tried two ways to indicate "extra" subfolders: through SCCINCLUDE variable and through SCC /INCLUDE option. The effect was the same.
If ... \Silverfrost\FTN95\include\win32 path have been indicated, then SCC could not find *.h placed in ... \Silverfrost\FTN95\include folder.
If two or more paths separated by semicolon are indicated in SCCINCLUDE or after /INCLUDE in command line, SCC sees only the first path from the list.
But has SCC compiler make search in subfolders or has not ? |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Oct 22, 2008 8:13 am Post subject: |
|
|
I will test this out when I get a minute. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Oct 22, 2008 10:00 am Post subject: |
|
|
I have done some testing using the include file windows.h.
On my machine this is in C:\Program Files\Salford Software\FTN95\include
and my PATH environment variable includes C:\Program Files\Salford Software\FTN95
This is sufficient to allow the compiler to find windows.h.
I moved windows.h to C:\Win32app\Salford\Include and I set the SCCINCLUDE environment variable to C:\Win32app\Salford\Include.
This was also sufficient to allow the compiler to find windows.h.
At the moment the compiler limits the length of the SCCINCLUDE variable to 120 characters. This is rather short now-a-days and needs changing.
You should check to make sure that the include files that you reference are actually located in the include folder. For example, winbase.h does not appear in my Silverfrost include folder. |
|
Back to top |
|
 |
Serge_A
Joined: 20 Oct 2008 Posts: 7 Location: Germany
|
Posted: Wed Oct 22, 2008 11:12 am Post subject: |
|
|
Paul,
thank you. Understood.
But the problem still remans. Please, try to compile some *.cpp with:
.....
#include <windows.h>
#include <winbase.h>
#include <conio.h>
.....
On my comp <windows.h> is in the FTN95-root folder, <winbase.h> is in
.\win32\ subfolder and <conio.h> is in .\dbos\ subfolder. What will be the result?
I think is the problem is not only in SCCINCLUDE string length.
Thank you |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Oct 22, 2008 12:17 pm Post subject: |
|
|
You need
#include <windows.h>
#include <win32\winbase.h>
#include <dbos\conio.h> |
|
Back to top |
|
 |
Serge_A
Joined: 20 Oct 2008 Posts: 7 Location: Germany
|
Posted: Thu Oct 23, 2008 7:32 am Post subject: |
|
|
Paul,
thank you. Understood. But this is strange in comparison with othe C compilers.
Good bye. |
|
Back to top |
|
 |
|