NickIlieskou Posted February 13, 2014 Report Share Posted February 13, 2014 Dear all, I am new in the systemC world and I am trying to find a way through the set up. I would like to run systemC on Visual Studio 2013 Express. -Initially I download the systemc2.3.0 -Then I opened the ..\systemc-2.3.0\msvc80\SystemC.vcproj with Microsoft Visual Studio Express 2013 - At that point I got the following message: ---------------------------------------------------------------- "These projects are either not supported or need project behavior impacting modifications to open in this version of Visual Studio. Projects not displayed either require no changes or will automatically be modified such that behavior is not impacted. For details see: http://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=EN-US&k=k(VS.ReviewProjectAndSolutionChangesDialog.Upgrade)&rd=true One- way upgrade Visual studio will automatically make functional changes to the following projects in order to open them. You will not be able to open these projects in the version of Visual Studio in which they were originally created. " ---------------------------------------------------------------- - Then after pressing ok, I build the project and I get 12 Errors and 12 Warnings all stating the same thing: Warning C4005:'for': macro redefinition error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. Do anyone know how to solve this bug? I hope I can skip using Visual studio 2005. Thanks in advance!!! Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted February 13, 2014 Report Share Posted February 13, 2014 The following patch fixes this problem in MS Visual Studio 2011 and later:0001-Check-for-MSVC-version-in-for-scope-bug-hack.patch.txt I don't remember, if this was the only required change for SystemC 2.3.0 to achieve MSVC >= 2011 compatibility. hth, Philipp maehne 1 Quote Link to comment Share on other sites More sharing options...
NickIlieskou Posted February 13, 2014 Author Report Share Posted February 13, 2014 Thanks for your answer. Can you please guide me on how to install the patch? Quote Link to comment Share on other sites More sharing options...
David Black Posted February 13, 2014 Report Share Posted February 13, 2014 If you don't have the linux 'patch' utility handy, you can apply a patch manually (assuming it is small, which this one is). The file is plain text and tells which files and lines to change. The lines beginning with a '-' are old lines to be replaced with the '+' lines representing replacement/new code. This particular patch says the problem is just after line 69 of the sc_cmnhdr.h file. If you look closely, you will see the fix places a #ifdef around the problematic code. Philipp A Hartmann and maehne 2 Quote Link to comment Share on other sites More sharing options...
NickIlieskou Posted February 14, 2014 Author Report Share Posted February 14, 2014 That worked !!! Finally I was able to build the systemc library. Thank you so much !!!! Quote Link to comment Share on other sites More sharing options...
na3em_the_junior Posted March 14, 2014 Report Share Posted March 14, 2014 Can you please tell me how to use this patch file ? and how to modify the problem with the file manually ?? thanks Quote Link to comment Share on other sites More sharing options...
apfitch Posted March 16, 2014 Report Share Posted March 16, 2014 David's post above should help http://forums.accellera.org/topic/1713-problem-while-trying-to-build-systemclib/?p=6501 regards Alan P.S. If you're on Linux, the you can get help on the patch command using man patch Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.