From: William S F. <ws...@fu...> - 2009-11-25 18:39:31
|
I'd better look at these ruby-1.9.1 problems. The downloads from http://www.ruby-lang.org/en/downloads/ require ancient versions of vc++. Is there not a prebuilt visual studio 2008 version anywhere? William Sören Freudiger wrote: > Arghh… I don’t know what to do… > > No it doesn’t work for 1.8.6 either (Win 2008 Server 64bit.. but ruby, > my dll and swig are pure 32 bit). > > Do I have to include some extra interface file? Do I have to add some > special preprocessor define (in addition to NT=1 and IMPORT)? > > > > *Von:* Sören Freudiger [mailto:fr...@ir...] > *Gesendet:* Donnerstag, 19. November 2009 13:37 > *An:* swi...@li... > *Betreff:* Re: [Swig-user] SWIG <-> Ruby 1.9.1 - std::fstream - program > termination > > > > Okay, here is some extra info I found out: > > > > It seems to be a SWIG bug. > > Implementing the function direct via the ruby C-API works fine (files > attached) > > > > Any idea? > > (I also send an bug report to swig) > > > > *Von:* Sören Freudiger [mailto:fr...@ir...] > *Gesendet:* Donnerstag, 19. November 2009 10:57 > *An:* swi...@li... > *Betreff:* [Swig-user] SWIG <-> Ruby 1.9.1 - std::fstream - program > termination > > > > Hello > > Again a huge problem with ruby and C++ > > I’m not sure if this problem is related to SWIG or ruby. But maybe > anyone has a clue how to fix that issue. > > > > That’s’ my source code: > > > > #include <iostream> > > #include <fstream> > > > > void foo() > > { > > std::ofstream file("c:/temp/text.txt", std::ios::out); > > file<<"hello world"<<std::endl; > > file.close(); > > } > > > > As you can see, really crazy low level programming. > > > > The swig interface file: > > %module example > > %{ > > #include "example.h" > > %} > > %include "example.h" > > > > And the problem: > > Platform: Windows (7) > > Compiler: cl from VS 2008 > > > > Ruby version 1.8.6. everything works quite well > > Ruby version 1.9.1_p129 (installer) program termination at file.close() > > Ruby version 1.9.1_p243 (VS 2008 build, 32bit): program termination at > file.close() > > Ruby version 1.9.2. program termination at file.close() > > > > I tried to debug the problem, but stuck in > > > > VS9/VC/Include/fstream > > > > Does anyone know about that error and has a workaround? > > > > > > Best, > > SirAnn > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > ------------------------------------------------------------------------ > > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user |