On 2007-12-18 09:03+0100 Arjen Markus wrote:
> Hi all,
>
> I have been experimenting with MingW as the development and build
> environment
> under Windows, but I have run into a nasty problem.
>
> Let me first explain the setup:
> - I have MingW installed under Windows XP
> - I use the Windows CMake executable in a MingW console to generate the
> makefiles (UNIX makefiles to be precise)
> - I have excluded all languages except C and C++, using the gcc compiler
> that comes with MingW (I actually only looked at the C bindings and
> examples).
> - I have excluded all but the PostScript devices
>
> Generating the makefiles and building the libraries and the examples works
> like a charm.
>
> The problem arises when I try to run an example: It hangs. Nothing happens.
> No output to the screen, nothing.
>
> To see where in PLplot it is going wrong, I have added print statements.
> But
> the program does not even seem to get into the main function:
>
> int main( int argc, char *argv[] ) {
> printf( "In main\n" );
> ...
> }
>
> does not even print "In main".
>
> A "Hello, world" example does work, so the compiler basically does its job.
>
> Now, I have tried this with both dynamic and static libraries - in both
> cases
> the program simply hangs.
>
> Does anybody have a clue as how to proceed here? I think it is using wrong
> start-up code but I have no idea where that could be coming from or how
> to resolve the problem.
>
One possibility is the programme might be waiting for access to some
resource. In such situations, I find strace is a livesaver. Do you have
access to that command or its equivalent for mingw?
Could you give more MinGW details? Is it bare MinGW or MinGW with
MSYS? From the CMake perspective (and probably many other perspectives),
there is a large distinction between the two.
Also, details about CMake would be useful. What version? Where did you get it?
Did you install a binary version or did you build it yourself?
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel