Bonjour,
apres une installation de boost 1.45.0 (execution du .bat puis du bjam.exe)
et apres avoir configurer Visual studio (v8) sur mon poste de travail windows.
J'obtiens ce message d'erreur lors de la compilation de mon projet sous Windows.
J'utilise cmake pour generer mon projet (celui-ci est fonctionnel sur Fedora et debian).
J'avais deja rencontrer ce probleme avec d'autre library mais j'avais pu les regler grace au telechargement de library pre-compiler (disponnible par exemple pour la version 1.35.0 : http://code.google.com/p/multiwindco...c=svn961&r=961)
Malheuresement, cette library n'est pas disponnible pour la version 1.45.0
Je fais donc appel a vous
Merci.
Mon CMakeLists.txt1>------ Build started: Project: serverBabel, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>BoostMessageApi.cpp
1>BoostUserApi.cpp
1>BoostRoomApi.cpp
1>BoostServerApi.cpp
1>main.cpp
1>Generating Code...
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc90-mt-s-1_45.lib'
1>Build log was saved at "file://c:\Users\LOGIN\Desktop\PROJET\work\LOGIN\boost_server\build\serverBabel.dir\Debug\BuildLog.htm"
1>server - 1 error(s), 0 warning(s)
2>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32 ------
2>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 cmake_minimum_required ( VERSION 2.8 ) project ( Projet ) set ( Boost_DEBUG FALSE ) set ( Boost_ADDITIONAL_VERSIONS "1.41.0" ) set ( Boost_USE_STATIC_LIBS ON ) set ( Boost_USE_MULTITHREADED ON ) find_package ( Boost REQUIRED COMPONENTS regex system thread ) set ( BINARY_NAME server ) set ( SOURCE_DIRECTORY src ) set ( INCLUDE_DIRECTORY inc ) if ( WIN32 ) set ( CMAKE_CXX_FLAGS " /D\"_WIN32_WINNT=0x0501\" /D\"WIN32\" /EHsc /WX " ) set ( CMAKE_CXX_FLAGS_DEBUG "" ) set ( CMAKE_CXX_FLAGS_RELEASE "" ) set ( SOURCE_FILES ${SOURCE_DIRECTORY}/main.cpp ${SOURCE_DIRECTORY}/BoostServerApi.cpp ${SOURCE_DIRECTORY}/BoostRoomApi.cpp ${SOURCE_DIRECTORY}/BoostUserApi.cpp ${SOURCE_DIRECTORY}/BoostMessageApi.cpp ${SOURCE_DIRECTORY}/stdafx.cpp ) else ( WIN32 ) set ( CMAKE_CXX_COMPILER "g++" ) set ( CMAKE_CXX_FLAGS "-W -Wall -Werror -I /usr/local/boost_1_42_0 -lboost_system-mt -lboost_thread-mt" ) set ( CMAKE_CXX_FLAGS_DEBUG "-W -Wall -Werror -g3" ) set ( CMAKE_CXX_FLAGS_RELEASE "-W -Wall -Werror" ) set ( SOURCE_FILES ${SOURCE_DIRECTORY}/main.cpp ${SOURCE_DIRECTORY}/BoostServerApi.cpp ${SOURCE_DIRECTORY}/BoostRoomApi.cpp ${SOURCE_DIRECTORY}/BoostUserApi.cpp ${SOURCE_DIRECTORY}/BoostMessageApi.cpp ) endif ( WIN32 ) if ( Boost_FOUND ) include_directories ( ${Boost_INCLUDE_DIRS} ${INCLUDE_DIRECTORY} ) add_executable ( ${BINARY_NAME} ${SOURCE_FILES} ) target_link_libraries ( ${BINARY_NAME} ${Boost_LIBRARIES} ) endif ( Boost_FOUND )
Partager