2013-05-06 75 views
0

我想在Windows 64位上的Visual Studio express 2012中編譯一個簡單的C++文件。我使用visual studio命令提示符安裝了boost_1_53_0。我也編譯/安裝了boost庫。編譯boost程序的問題

這裏是我包括的:

#include "stdafx.h" 
#include <stdio.h> 
#include <stdlib.h> 
#include <iostream> 
#include <fstream> 
#include <boost\filesystem.hpp> 
#include <ctime> 
#include <string> 

我收到以下錯誤,當我嘗試調試或釋放我的「項目」。

http://pastebin.com/fBDcttKc

我已正確設置附加包含目錄,以及附加庫目錄設置。

如果我丟失了一些信息,請告訴我,我剛開始學習C++

謝謝!

+0

http://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix – chris 2013-05-06 01:35:14

+0

非常豐富的職位,我將通過它看。 -謝謝 – 2013-05-06 01:38:35

回答

1

This was already answered。 想法是啓用自動鏈接或鏈接正確的庫。

在項目中的C++選項 中的預處理器符號中定義BOOST_ALL_DYN_LINK。