Hi Bertrand,
Thanks, this got me a step further, but there are a few more problems that maybe you can help me solve:
First, there still is a problem if the file I’m trying to compile is in a directory path that has spaces in its names (such as “Documents and Sesttings”). Then I get the following error:
c1xx : fatal error C1083: Cannot open source file: ‘and’: No such file or direc
ory
My
c1xx : fatal error C1083: Cannot open source file: ‘Settings\avner\My’: No such
file or directory
TGC
Is the only solution to work in directory names without spaces?
Perhaps more difficult is the following problem (which I get when I put the file to be compiled in a spaceless-name path): Trying to compile a very simple function, which just does cout to some char*, I first get the following errors in the cmd window from which I’m running root:
Info in TWinNTSystem::ACLiC: creating shared library C:\try_cc.dll
23460171_cint.cxx
cl : Command line warning D9002 : ignoring unknown option '-G5’
s3m8_18467.cxx
Creating library C:\try_cc.lib and object C:\try_cc.exp
C:\try_cc.dll: A dynamic link library (DLL) initialization routine failed.
Load Error: Failed to load Dynamic link library C:\try_cc.dll
Then I get a VC++ popup window that says
“Runtime Error!
Program C:\root\bin\root.exe
R6034
An application has made an attempt to load the C runtime library incorrectly. Please contact the application’s support team for more information.”
When I click “OK” in that window (or sometimes before), the root cmd window gives the following:
cl : Command line warning D9035 : option ‘o’ has been deprecated and will be rem
oved in a future release
cl : Command line warning D9035 : option ‘o’ has been deprecated and will be rem
oved in a future release
cl : Command line warning D9002 : ignoring unknown option '-G5’
cl : Command line warning D9002 : ignoring unknown option '-ignore:4049,4075,421
7,4221’
cl : Command line warning D9002 : ignoring unknown option '-incremental:no’
cl : Command line warning D9002 : ignoring unknown option '-LIBPATH:C:\root’
s3m8_18467.cxx;
c1xx : fatal error C1083: Cannot open source file: ‘C:\s3m8_18467.cxx;’: No such
file or directory
link
c1xx : fatal error C1083: Cannot open source file: ‘link’: No such file or direc
tory
s3m8_18467.obj
C:\s3m8_18467.obj : warning C4819: The file contains a character that cannot be
represented in the current code page (1255). Save the file in Unicode format to
prevent data loss
C:\s3m8_18467.obj(1) : error C2018: unknown character '0x1’
C:\s3m8_18467.obj(1) : error C2143: syntax error : missing ‘;’ before '|'
C:\s3m8_18467.obj(1) : error C4430: missing type specifier - int assumed. Note:
C++ does not support default-int
Followed by many lines that look like this:
C:\s3m8_18467.obj(1) : error C2018: unknown character ‘0x7f’
And then by
C:\s3m8_18467.obj(2) : fatal error C1003: error count exceeds 100; stopping comp
ilation
libCore.lib
c1xx : fatal error C1083: Cannot open source file: ‘libCore.lib’: No such file o
r directory
libCint.lib
c1xx : fatal error C1083: Cannot open source file: ‘libCint.lib’: No such file o
r directory
libMathcore.lib
c1xx : fatal error C1083: Cannot open source file: ‘libMathcore.lib’: No such fi
le or directory
libRint.lib
c1xx : fatal error C1083: Cannot open source file: ‘libRint.lib’: No such file o
r directory
advapi32.lib
c1xx : fatal error C1083: Cannot open source file: ‘advapi32.lib’: No such file
or directory
Generating Code…
*** Interpreter error recovered ***
Do you know what I’m doing wrong?
Thanks again,
Abi