Jump to content
Sign in to follow this  
shan

Installation for Visual Studio 2010, Windows 7

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...