Wesley Kirk Posted September 15, 2015 Report Share Posted September 15, 2015 Hi, I'm just getting started with SystemC and I'm having trouble getting the examples to work. I have started with simple_bus because it was one of the failing tests under Cygwin64. So I wanted to try Visual C++ because it is supposed to be one of the supported platforms. I downloaded and installed the latest, which is Microsoft Visual Studio Community 2015. I loaded the systemc Solution provided by the SystemC download and it built successfully. I see a systemc.lib in this folder: msvc80\SystemC\Debug Then I loaded the examples Solution, selected the simple_bus project, and then started the build. I get the following errors. Anyone have any ideas? 1>------ Build started: Project: simple_bus, Configuration: Debug Win32 ------ 1> simple_bus_types.cpp 1> simple_bus_tools.cpp 1> simple_bus_master_non_blocking.cpp 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2039: 'gets': is not a member of 'std' 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(17): note: see declaration of 'std' 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2873: 'gets': symbol cannot be used in a using-declaration 1> Unknown compiler version - please run the configure tests and report the results 1> simple_bus_master_direct.cpp 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2039: 'gets': is not a member of 'std' 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(17): note: see declaration of 'std' 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2873: 'gets': symbol cannot be used in a using-declaration 1> Unknown compiler version - please run the configure tests and report the results 1> simple_bus_master_blocking.cpp 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2039: 'gets': is not a member of 'std' 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(17): note: see declaration of 'std' 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2873: 'gets': symbol cannot be used in a using-declaration 1> Unknown compiler version - please run the configure tests and report the results 1> simple_bus_main.cpp 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2039: 'gets': is not a member of 'std' 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(17): note: see declaration of 'std' 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2873: 'gets': symbol cannot be used in a using-declaration 1> Unknown compiler version - please run the configure tests and report the results 1> simple_bus_arbiter.cpp 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2039: 'gets': is not a member of 'std' 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(17): note: see declaration of 'std' 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2873: 'gets': symbol cannot be used in a using-declaration 1> Unknown compiler version - please run the configure tests and report the results 1> simple_bus.cpp 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2039: 'gets': is not a member of 'std' 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector(17): note: see declaration of 'std' 1>c:\users\wes\documents\work\systemc\systemc-2.3.1 - copy\src\systemc.h(118): error C2873: 'gets': symbol cannot be used in a using-declaration 1> Unknown compiler version - please run the configure tests and report the results 1> Generating Code... ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Quote Link to comment Share on other sites More sharing options...
Wesley Kirk Posted September 15, 2015 Author Report Share Posted September 15, 2015 I was able to get simple_bus example to build and run properly (output matches golden.log) by commenting out line 118 of systemc.h. Here is the snippet: using std::getc; using std::getchar; // using std::gets; // wkk using std::putc; using std::putchar; Now I just get a few warnings about my compiler being "unknown". 1>------ Rebuild All started: Project: simple_bus, Configuration: Debug Win32 ------ 1> simple_bus_types.cpp 1> simple_bus_tools.cpp 1> simple_bus_master_non_blocking.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> simple_bus_master_direct.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> simple_bus_master_blocking.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> simple_bus_main.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> simple_bus_arbiter.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> simple_bus.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Generating Code... 1>simple_bus.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification 1> simple_bus.vcxproj -> C:\Users\Wes\Documents\work\systemc\systemc-2.3.1 - Copy\examples\sysc\simple_bus\\Debug\simple_bus.exe ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ========== Quote Link to comment Share on other sites More sharing options...
joeku Posted September 16, 2015 Report Share Posted September 16, 2015 gets has been deprecated in C++. It should not be used anymore. maehne 1 Quote Link to comment Share on other sites More sharing options...
Wesley Kirk Posted September 16, 2015 Author Report Share Posted September 16, 2015 Ah. I guess eventually they will remove its usage from systemc.h then. Quote Link to comment Share on other sites More sharing options...
DavidA Posted March 4, 2016 Report Share Posted March 4, 2016 I am also seeing this issue. How can users raise issues against the SystemC libraries? Is a fix planned? Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted April 14, 2016 Report Share Posted April 14, 2016 We are facing this too. Hope to see VS2015 support soon. There are issues with modern C++ support in VS2013. maehne 1 Quote Link to comment Share on other sites More sharing options...
Kushal Posted September 5, 2017 Report Share Posted September 5, 2017 Hi installed the latest version 2.3.1 and I have an error saying gets is not member of std. I have commented that line still does not work. Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted September 5, 2017 Report Share Posted September 5, 2017 1 hour ago, Kushal said: Hi installed the latest version 2.3.1 and I have an error saying gets is not member of std. I have commented that line still does not work. What exactly does not work for you? Did you tried 2.3.2 draft? http://www.accellera.org/downloads/drafts-review 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.