shan Posted January 12, 2013 Report Share Posted January 12, 2013 Hi , I am very new to SystemC and Visual Studio 2010. I have download the SystemC 2.3 and wanted to compile an example project "simple fifo" with Visual studio 2010. I get the following error: 1>------ Build started: Project: simple_fifo, Configuration: Debug Win32 ------ 1>Build started 1/12/2013 1:13:22 AM. 1>InitializeBuildStatus: 1> Touching "Debug\simple_fifo.unsuccessfulbuild". 1>ClCompile: 1> simple_fifo.cpp 1>e:\users\shan\programing\systemc\systemc-2.3.0\examples\sysc\simple_fifo\simple_fifo.cpp(41): fatal error C1083: Cannot open include file: 'systemc.h': No such file or directory 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:00.89 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I have added the systemc.h file in the header files folder of the project , but it still gives the same error. What is going wrong? Why it is not bale to find the header files? Quote Link to comment Share on other sites More sharing options...
apfitch Posted January 14, 2013 Report Share Posted January 14, 2013 You should add the include and library directories to the paths. Here are my rather short notes: Visual C++ 2010 Tools > Settings > Expert Settings View > Property Manager Expand project properties until you see Microsoft.Cpp.Win32.User Right-click on the above under e.g. Debug, and set directories. Close and re-open Visual C++. When it says "set directories", include should be set to the src directory, library should be set to the Debug directory, Alan Quote Link to comment Share on other sites More sharing options...
pbo Posted September 22, 2016 Report Share Posted September 22, 2016 Setting the paths in VS2015 is tricky, what is explained here for VS2012 applies for VS2015 as well: https://www.curlybrace.com/words/2012/12/17/setting-global-c-include-paths-in-visual-studio-2012-and-2011-and-2010/ 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.