Ho
 
Your solution is perfect! And there is no error C 1189 any more. Thank you !
But, there are some other errors in my output.
 
150>e:\datacenter\joezhao\vxl-1.14.0\vxl-1.14.0\contrib\brl\bbas\bsta\bsta_parzen_sphere.txx(133): fatal error C1001: INTERNAL COMPILER ERROR
219>e:\datacenter\joezhao\vxl-1.14.0\vxl-1.14.0\core\vgui\vgui_gl.h(7): fatal error C1083: Cannot open include file: ¡°vgui/vgui_config.h¡±: No such file or directory
16>E:\DataCenter\joezhao\vxl-1.14.0\vxl-1.14.0\core\vul\vul_debug.cxx(44): error C2039: ¡°snprintf" is not a member of¡°std¡±
16>e:\datacenter\joezhao\vxl-1.14.0\vxl-1.14.0\core\vul\vul_psfile.h(40): error C2440: ¡°static_cast¡±: Cannot convert from¡°std::basic_ofstream<char,std::char_traits<char>>¡±to¡°void *¡±
330>E:\DataCenter\joezhao\vxl-1.14.0\vxl-1.14.0\contrib\mul\tools\crop_image_3d.cxx(53): error C2678: binary¡°<<¡±: no operator found which takes a left-hand operand of type¡°std::basic_ostream<char,std::char_traits<char>>¡±(or there is no acceptable conversion)
16>E:\DataCenter\joezhao\vxl-1.14.0\vxl-1.14.0\core\vul\vul_debug.cxx(44): error C3861: ¡°snprintf¡±:  identifier not found
268>LINK : fatal error LNK1181: cannot open input file ¡°..\..\..\..\..\..\lib\Release\brec_pro.lib¡±


And the output shows 241 files built successful, while 341 files failed.  
 
Thanks for helping me so much, you are all nice man and I don't know how to show my gratitude.
 
 
Joe
------------------
With kind regards,
-------------------------------------------------------------------
Joe Zhao 
Beihang University
Mobile: +86-15210980560
Address:  B518, New Main Building, Beihang University, Xueyuan Rd No.37, Haidian District, Beijing, P.R.China

 

From: hocheung20@gmail.com
Date: Tue, 13 May 2014 08:44:58 -0500
Subject: Re: [Vxl-users] Compile Error
To: joeasir0560@outlook.com
CC: vxl-users@lists.sourceforge.net

I assume you use cmake-gui.

Run CMake. Check the box that says Advanced (upper right). Search for CMAKE_CXX_FLAGS. Modify the line and add "/D_ALLOW_KEYWORD_MACROS". Configure and Generate. Build VXL as usual.



On Tue, May 13, 2014 at 8:12 AM, ÕÔÒ« <joeasir0560@outlook.com> wrote:
Ho,
 
I've tried the VXL 1.17, but it doesn't work. There are still many same errors as before. As for the other solution : add"/D_ALLOW_KEYWORD_MACROS" to your CMAKE_CXX_FLAGS .    I'm not clear where CMAKE_CXX_FLAGS is. How can I find it, and add"/D_ALLOW_KEYWORD_MACROS".
 
I'm sorry that I'm a begin-learn, Please don't be anger about my questions.   :-)

 
Joe


------------------
With kind regards,
-------------------------------------------------------------------
Joe Zhao 
Beihang University
Address:  B518, New Main Building, Beihang University, Xueyuan Rd No.37, Haidian District, Beijing, P.R.China

 

From: hocheung20@gmail.com
Date: Mon, 12 May 2014 20:44:27 -0500

Subject: Re: [Vxl-users] Compile Error
To: joeasir0560@outlook.com
CC: scottim@imorphics.com; vxl-users@lists.sourceforge.net


Joe,

The link that Frank sent has both a short hack-around solution or a more updated comprehensive fix.

In short, either add "/D_ALLOW_KEYWORD_MACROS" to your CMAKE_CXX_FLAGS.


Hope this helps,

Ho Cheung