dcmmkcrv fatal error LNK1146: no argument specified with option '/LIBPATH:'
Moderator: Moderator Team
dcmmkcrv fatal error LNK1146: no argument specified with option '/LIBPATH:'
Hi,
I am trying to compile DCMTK unde Visual Studio 2003 .Net and get the following error:
dcmmkcrv fatal error LNK1146: no argument specified with option '/LIBPATH:'
dcmmkcrv is just one of the places (10 in all)
What have I missed?
Best regards
Pål Eilertsen
I am trying to compile DCMTK unde Visual Studio 2003 .Net and get the following error:
dcmmkcrv fatal error LNK1146: no argument specified with option '/LIBPATH:'
dcmmkcrv is just one of the places (10 in all)
What have I missed?
Best regards
Pål Eilertsen
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
I guess that the VS project file is incorrect. Could you please check whether there is any "/LIBPATH:" option with no argument in the .sln file.dcmmkcrv fatal error LNK1146: no argument specified with option '/LIBPATH:'
Btw, did you remove the .dsw and .dsp files before starting CMake as suggested in the INSTALL file?
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Hi, palei
I got the same problem with you
. However, I have fixed it now
.
I think it is a bug of MSVC++7.0.
FIX method:
First, Cut off the path length.
for example, change the source code path "D:\Program File\DCMTk-3.5.3" to "D:\a\", and change the support libraries path "D:\Program File\dcmtk-3.5.3-win32-i386-support\libpng-1.2.5" to "D:\b\png\"
Next, Use CMake program to configure and generate build files for DCMTK projects. You can set the Lib output path to put the lib files into one directory.
Finally, Open the MSVC solution file that CMake generated, and Build them. Take a cup of coffee, there will be no errors.
Enjoy it!
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::=)
Hi, Jörg Riesmeier:
I wonder why you do not distribute the lib files and could I distribute them within the license?
My e-mail: canhuaxu@gmail.com
comments welcome!
I got the same problem with you


I think it is a bug of MSVC++7.0.
FIX method:
First, Cut off the path length.
for example, change the source code path "D:\Program File\DCMTk-3.5.3" to "D:\a\", and change the support libraries path "D:\Program File\dcmtk-3.5.3-win32-i386-support\libpng-1.2.5" to "D:\b\png\"
Next, Use CMake program to configure and generate build files for DCMTK projects. You can set the Lib output path to put the lib files into one directory.
Finally, Open the MSVC solution file that CMake generated, and Build them. Take a cup of coffee, there will be no errors.
Enjoy it!
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::=)
Hi, Jörg Riesmeier:


My e-mail: canhuaxu@gmail.com
comments welcome!
code,code,code
fun,fun,fun
fun,fun,fun
Hi, palei
I got the same problem with you
. However, I have fixed it now
.
I think it is a bug of MSVC++7.0.
FIX method:
First, Cut off the path length.
for example, change the source code path "D:\Program File\DCMTk-3.5.3" to "D:\a\", and change the support libraries path "D:\Program File\dcmtk-3.5.3-win32-i386-support\libpng-1.2.5" to "D:\b\png\"
Next, Use CMake program to configure and generate build files for DCMTK projects. You can set the Lib output path to put the lib files into one directory.
Finally, Open the MSVC solution file that CMake generated, and Build them. Take a cup of coffee, there will be no errors.
Enjoy it!
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::=)
Hi, Jörg Riesmeier:
I wonder why you do not distribute the lib files and could I distribute them within the license?
My e-mail: canhuaxu@gmail.com
comments welcome!
I got the same problem with you


I think it is a bug of MSVC++7.0.
FIX method:
First, Cut off the path length.
for example, change the source code path "D:\Program File\DCMTk-3.5.3" to "D:\a\", and change the support libraries path "D:\Program File\dcmtk-3.5.3-win32-i386-support\libpng-1.2.5" to "D:\b\png\"
Next, Use CMake program to configure and generate build files for DCMTK projects. You can set the Lib output path to put the lib files into one directory.
Finally, Open the MSVC solution file that CMake generated, and Build them. Take a cup of coffee, there will be no errors.
Enjoy it!
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::=)
Hi, Jörg Riesmeier:


My e-mail: canhuaxu@gmail.com
comments welcome!
code,code,code
fun,fun,fun
fun,fun,fun
Who is online
Users browsing this forum: Google [Bot] and 1 guest