[vtkusers] what's meaning of "-mwin32 -mthreads -mwindows"
Peter F Bradshaw
pfb at exadios.com
Wed Jul 16 09:37:47 EDT 2008
Hi Bangyou Zheng;
On Thu, 10 Jul 2008, Bangyou Zheng wrote:
> Hello all,
>
> I juse download the vtk minimal sample from
> "http://code.hkpeterpeter.googlepages.com/vtk_minimal_mingw.zip"
>
> But I can not understand the linked libraries, for example -mwin32
> -mthreads -mwindows.
>
> Do you have any suggestion?
The "-m" switch specifies "emulations" - that is for which particular
ABI and system the output is meant for. I do not know anything about the
source code but it looks like it makes the assumption that that target
is a Win32 machine.
>
> This is the makefile:
>
> CC = gcc
> CXXFLAGS = -Wno-deprecated
> INC = -I"D:\SourceCode\Libraries\VTK\scr\include\vtk-5.0"
> LIB = -L"D:\SourceCode\Libraries\VTK\scr\lib" -mwin32 -mthreads
> -mwindows -lvtkRendering -lvtkGraphics -lvtkImaging -lvtkIO
> -lvtkFiltering -lvtkCommon -lvtkftgl -lvtkfreetype -lopengl32
> -lvtkDICOMParser -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat
> -lvfw32 -lvtksys -lgdi32 -lstdc++
>
> minimal: vtk_minimal.cpp
> gcc $(CXXFLAGS) -c vtk_minimal.cpp $(INC)
> gcc -o minimal vtk_minimal.o $(LIB)
>
> clean:
> rm -f *.o minimal.exe
>
>
>
> Best regards,
>
> Bangyou Zheng
Cheers
--
Peter F Bradshaw: http://www.exadios.com (public keys avaliable there).
Personal site: http://personal.exadios.com
"I love truth, and the way the government still uses it occasionally to
keep us guessing." - Sam Kekovich.
More information about the vtkusers
mailing list