www.digitalmars.com         C & C++   DMDScript  

c++ - Problem with scppn.exe

reply "Alex Vinokur" <alexvn connect.to> writes:
Hi,

I tried to compile using scppn.exe, but I have a problem.

------ BEGIN ------
$ pwd
C:/dm/bin


$ dmc
Digital Mars Compiler Version 8.35n
[---omitted---]

$ dmc -I. -I\dm\stlport\stlport foo.cpp
link foo,,,user32+kernel32/noi;
// Success

$ scppn
Digital Mars C/C++ Compiler Version 8.36.4n
[---omitted---]

$ scppn -I. -I\dm\stlport\stlport foo.cpp
Fatal error: unable to open input file 'heapstat.h'
// Failure

------ END --------


What is wrong?


Thanks in advance,
 =====================================
   Alex Vinokur
     mailto:alexvn connect.to
     http://mathforum.org/library/view/10978.html
     news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =====================================
Oct 29 2003
parent reply "Gisle Vanem" <giva users.sourceforge.net> writes:
"Alex Vinokur" <alexvn connect.to> wrote:

 $ scppn -I. -I\dm\stlport\stlport foo.cpp
 Fatal error: unable to open input file 'heapstat.h'
 // Failure
 
 ------ END --------
 
 
 What is wrong?
Check your INCLUDE line in c:\dm\bin\sc.ini. --gv
Oct 29 2003
parent reply "Alex Vinokur" <alexvn connect.to> writes:
"Gisle Vanem" <giva users.sourceforge.net> wrote in message
news:bnor4p$qlo$1 digitaldaemon.com...
 "Alex Vinokur" <alexvn connect.to> wrote:

 $ scppn -I. -I\dm\stlport\stlport foo.cpp
 Fatal error: unable to open input file 'heapstat.h'
 // Failure

 ------ END --------


 What is wrong?
Check your INCLUDE line in c:\dm\bin\sc.ini. --gv
Here is my sc.ini. [Version] version=7.51 Build 020 [Environment] PATH=%PATH%;"% P%\..\bin" BIN="% P%\..\bin" INCLUDE="% P%\..\include";"% P%\..\mfc\include";"% P%\..\stl";%INCLUDE% LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB% HELP="% P%\..\help" -- ===================================== Alex Vinokur mailto:alexvn connect.to http://mathforum.org/library/view/10978.html news://news.gmane.org/gmane.comp.lang.c++.perfometer =====================================
Oct 29 2003
parent reply "Gisle Vanem" <giva users.sourceforge.net> writes:
"Alex Vinokur" <alexvn connect.to> wrote:

 Here is my sc.ini.
 
 [Version]
 version=7.51 Build 020
 
 [Environment]
 PATH=%PATH%;"% P%\..\bin"
 BIN="% P%\..\bin"
 INCLUDE="% P%\..\include";"% P%\..\mfc\include";"% P%\..\stl";%INCLUDE%
 LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB%
 HELP="% P%\..\help"
Looks okay. Do you really have c:\dm\include\heapstat.h then ? --gv
Oct 29 2003
parent reply "Alex Vinokur" <alexvn connect.to> writes:
"Gisle Vanem" <giva users.sourceforge.net> wrote in message
news:bnp1eo$142o$1 digitaldaemon.com...
 "Alex Vinokur" <alexvn connect.to> wrote:

 Here is my sc.ini.

 [Version]
 version=7.51 Build 020

 [Environment]
 PATH=%PATH%;"% P%\..\bin"
 BIN="% P%\..\bin"
 INCLUDE="% P%\..\include";"% P%\..\mfc\include";"% P%\..\stl";%INCLUDE%
 LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB%
 HELP="% P%\..\help"
Looks okay. Do you really have c:\dm\include\heapstat.h then ? --gv
Yes, I do. ------ foo.cpp --- #include <stdlib.h> int main () { return 0; } ------------------ ------ Compilation ------ $ pwd C:/dm/include $ ls -l [---omitted---] -rw-r--r-- 1 dosuser root 140 Jan 2 1997 heapstat.h [---omitted---] -rw-r--r-- 1 dosuser root 12381 May 16 01:50 stdlib.h [---omitted---] $ cd ../bin $ scppn -I. -I\dm\stlport\stlport foo.cpp Fatal error: unable to open input file 'heapstat.h' ------------------------- By the way, why doesn't dmc have such a problem? -- ===================================== Alex Vinokur mailto:alexvn connect.to http://mathforum.org/library/view/10978.html news://news.gmane.org/gmane.comp.lang.c++.perfometer =====================================
Oct 29 2003
next sibling parent reply "Walter" <walter digitalmars.com> writes:
It looks to me like you're not using the ordinary command prompt shell, but
some other one. Which is it?

"Alex Vinokur" <alexvn connect.to> wrote in message
news:bnq3pc$2ibm$1 digitaldaemon.com...
 "Gisle Vanem" <giva users.sourceforge.net> wrote in message
news:bnp1eo$142o$1 digitaldaemon.com...
 "Alex Vinokur" <alexvn connect.to> wrote:

 Here is my sc.ini.

 [Version]
 version=7.51 Build 020

 [Environment]
 PATH=%PATH%;"% P%\..\bin"
 BIN="% P%\..\bin"
INCLUDE="% P%\..\include";"% P%\..\mfc\include";"% P%\..\stl";%INCLUDE%
 LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB%
 HELP="% P%\..\help"
Looks okay. Do you really have c:\dm\include\heapstat.h then ? --gv
Yes, I do. ------ foo.cpp --- #include <stdlib.h> int main () { return 0; } ------------------ ------ Compilation ------ $ pwd C:/dm/include $ ls -l [---omitted---] -rw-r--r-- 1 dosuser root 140 Jan 2 1997 heapstat.h [---omitted---] -rw-r--r-- 1 dosuser root 12381 May 16 01:50 stdlib.h [---omitted---] $ cd ../bin $ scppn -I. -I\dm\stlport\stlport foo.cpp Fatal error: unable to open input file 'heapstat.h' ------------------------- By the way, why doesn't dmc have such a problem? -- ===================================== Alex Vinokur mailto:alexvn connect.to http://mathforum.org/library/view/10978.html news://news.gmane.org/gmane.comp.lang.c++.perfometer =====================================
Oct 29 2003
parent reply "Alex Vinokur" <alexvn connect.to> writes:
"Walter" <walter digitalmars.com> wrote in message
news:bnq4bm$2j1d$1 digitaldaemon.com...
 It looks to me like you're not using the ordinary command prompt shell, but
 some other one. Which is it?
[snip] I merely redacted my text (in UNIX-like style). Here is an actual log. ------ Log ------ C:\dm\bin>scppn -I. -I\dm\stlport\stlport foo.cpp Fatal error: unable to open input file 'heapstat.h' C:\dm\bin>dmc -I. -I\dm\stlport\stlport foo.cpp link foo,,,user32+kernel32/noi; ----------------- -- ===================================== Alex Vinokur mailto:alexvn connect.to http://mathforum.org/library/view/10978.html news://news.gmane.org/gmane.comp.lang.c++.perfometer =====================================
Oct 29 2003
parent "Alex Vinokur" <alexvn connect.to> writes:
"Alex Vinokur" <alexvn connect.to> wrote in message
news:bnq6pp$2mnd$1 digitaldaemon.com...
[snip]
 Here is an actual log.

 ------ Log ------

 C:\dm\bin>scppn -I. -I\dm\stlport\stlport foo.cpp
 Fatal error: unable to open input file 'heapstat.h'

 C:\dm\bin>dmc -I. -I\dm\stlport\stlport foo.cpp
 link foo,,,user32+kernel32/noi;

 -----------------
[snip] By the way, scppn with no arguments produces very short output : ------ BEGIN ------ C:\dm\bin>scppn.exe Digital Mars C/C++ Compiler Version 8.36.4n Copyright (C) Digital Mars 2000-2003. All Rights Reserved. Written by Walter Bright www.digitalmars.com C:\dm\bin> ------ END ------- Is this OK? dmc with no arguments produces help information. -- ===================================== Alex Vinokur mailto:alexvn connect.to http://mathforum.org/library/view/10978.html news://news.gmane.org/gmane.comp.lang.c++.perfometer =====================================
Oct 30 2003
prev sibling parent reply Christof Meerwald <cmeerw web.de> writes:
On Thu, 30 Oct 2003 06:32:52 +0200, Alex Vinokur wrote:
 Here is my sc.ini.

 [Version]
 version=7.51 Build 020

 [Environment]
 PATH=%PATH%;"% P%\..\bin"
 BIN="% P%\..\bin"
 INCLUDE="% P%\..\include";"% P%\..\mfc\include";"% P%\..\stl";%INCLUDE%
 LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB%
 HELP="% P%\..\help"
Looks okay. Do you really have c:\dm\include\heapstat.h then ?
But AFAIK, scppn doesn't parse sc.ini, only dmc does (and passed on a modifed environment to scppn). So all your settings in sc.ini are ignored if you invoke scppn directly. bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Oct 30 2003
parent reply "Alex Vinokur" <alexvn connect.to> writes:
"Christof Meerwald" <cmeerw web.de> wrote in message
news:bnrd1d$1d5a$1 digitaldaemon.com...
 On Thu, 30 Oct 2003 06:32:52 +0200, Alex Vinokur wrote:
 Here is my sc.ini.

 [Version]
 version=7.51 Build 020

 [Environment]
 PATH=%PATH%;"% P%\..\bin"
 BIN="% P%\..\bin"
 INCLUDE="% P%\..\include";"% P%\..\mfc\include";"% P%\..\stl";%INCLUDE%
 LIB="% P%\..\lib";"% P%\..\mfc\lib";%LIB%
 HELP="% P%\..\help"
Looks okay. Do you really have c:\dm\include\heapstat.h then ?
But AFAIK, scppn doesn't parse sc.ini, only dmc does (and passed on a modifed environment to scppn). So all your settings in sc.ini are ignored if you invoke scppn directly.
[snip] What is the difference between dmc and scppn ? -- ===================================== Alex Vinokur mailto:alexvn connect.to http://mathforum.org/library/view/10978.html news://news.gmane.org/gmane.comp.lang.c++.perfometer =====================================
Oct 30 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Alex Vinokur" <alexvn connect.to> wrote in message
 What is the difference between dmc and scppn ?
dmc is a driver program that calls the various compilers, linkers, etc.
Oct 30 2003
parent reply "Alex Vinokur" <alexvn connect.to> writes:
"Walter" <walter digitalmars.com> wrote in message
news:bnrn19$1rph$1 digitaldaemon.com...
 "Alex Vinokur" <alexvn connect.to> wrote in message
 What is the difference between dmc and scppn ?
dmc is a driver program that calls the various compilers, linkers, etc.
What scppn is? -- ===================================== Alex Vinokur mailto:alexvn connect.to http://mathforum.org/library/view/10978.html news://news.gmane.org/gmane.comp.lang.c++.perfometer =====================================
Oct 31 2003
parent "Walter" <walter digitalmars.com> writes:
"Alex Vinokur" <alexvn connect.to> wrote in message
news:bntkjq$1u7g$1 digitaldaemon.com...
 "Walter" <walter digitalmars.com> wrote in message
news:bnrn19$1rph$1 digitaldaemon.com...
 "Alex Vinokur" <alexvn connect.to> wrote in message
 What is the difference between dmc and scppn ?
dmc is a driver program that calls the various compilers, linkers, etc.
What scppn is?
scppn is the compiler pass run by dmc.
Oct 31 2003