Jump to content

Difference of file write between MSVC and MINGW421?


ruwan2

Recommended Posts

Hi,

I have a code run well with Microsoft Visio Studio Express 10.0, but I would like to run with Modelsim which has MINGW4.2.1. I find that the file write operation fails. If I comment out the file operation part, it works.

 

What requirement for SystemC 2.3.1 work with Modelsim?

 

The code is attached below.

 

 

Thanks,

kalman_abstract1a.zip

Link to comment
Share on other sites

When I load for simulation, it simply crashes.

 

Now, I change C file I/O to C++ stream mode in Modelsim 10.1. It can run, and can write text before wait() call in a SC_CTHREAD. After wait(), no content is written to the text file. i.e. from the attached file, only "writing this to a file1." and "writing this to a file2. are written, no the next line text written.

 

I put a breakpoint at line 75 of the attached fir.cpp. It does stop there after running, but no content writing happens of that line.

 

BTW, I still cannot paste text to this forum editor by right click mouse. If I use the paste button above the editor window, there is such warning box, see attached please. I never see this before. Now I use IE on Windows 7.

 

Thanks,

fir.zip

post-13413-0-43205500-1404481250.png

Link to comment
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.

×
×
  • Create New...