I want to include a library directory in a makefile:
C:/program file/ ../...
then How to represent the space in "program file"
I tried define ABC="C:/program file"
and add "\"after "program", but neither works.
Printable View
I want to include a library directory in a makefile:
C:/program file/ ../...
then How to represent the space in "program file"
I tried define ABC="C:/program file"
and add "\"after "program", but neither works.
Can you post the full line, because, for instance I have the following line which is working well although it contains quotes:
Edit: Maybe the problem is with the final "s" in "C:/Program Files"Code:LIBS = -L"C:/DEV-CPP/lib" -mwindows -lcomctl32
thanks for your reply ^_^
error message is:Code:MATLAB_LIBS = \
C:\PROGRAM FILES\MATLAB704\extern\lib\win32\microsoft\msvc71\libmx.lib
Code:LINK: fatal error LNK1181: cannot open input file "C: \PROGRAM.OBJ"
NMAKE:fatal error u1077: 'cl': return code '0X2'
The following should work i think:
Code:MATLAB_LIBS = \
"C:\PROGRAM FILES\MATLAB704\extern\lib\win32\microsoft\msvc71\libmx.lib"
Hi yinkou,
The following should also work (I've used it during scripting, but I like the long file names also).
Now that you have the short name:Code:C:\>dir /X
Volume in drive C has no label.
Volume Serial Number is 58AC-2403
Directory of C:\
11/04/2005 09:21 AM <DIR> CRYPTO~2.1 Crypto++ 5.2.1
10/04/2005 01:14 PM <DIR> dell
10/07/2005 08:21 AM <DIR> DOCUME~1 Documents and Settings
...
09/04/2003 12:59 PM 17,590 PkgClnup.log
11/07/2005 03:15 PM <DIR> POLICY~1 Policy Backups
11/17/2005 04:38 PM <DIR> PROGRA~1 Program Files
10/21/2005 10:53 AM <DIR> RDP5~1.2MS RDP 5.2 MSI Installer
JeffCode:MATLAB_LIBS = \C:\PROGRA~1\MATLAB704\extern\lib\win32\microsoft\msvc71\libmx.lib
I replaced "program files" with "PROGRA~1" and it works~~^_^Code:MATLAB_LIBS = \
C:\PROGRA~1\MATLAB704\extern\lib\win32\microsoft\msvc71\libmx.lib
Thank you Jeffrey,Marc G and olivthill~~~~;)