thecocce / fog

Automatically exported from code.google.com/p/fog
0 stars 0 forks source link

libFog.dll link failed on MingW64 GCC 4.6.0 #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I encountered build errors while building on Windows 7 64-bit OS using MingW64 
compiler, but I managed to make it compile the sources successfully but the 
final DLL linking it failed with undefined references.

What is the expected output? What do you see instead?
Instead of successful linking the DLL I saw:

Linking CXX shared library libFog.dll
Creating library file: libFog.dll.a
CMakeFiles\Fog.dir/objects.a(Rasterizer.cpp.obj):Rasterizer.cpp:(.text+0x55ce): 
undefined reference to `void Fog::PathRasterizer8_re
nder_st_clip_mask<Fog::PathRasterizer8::ChunkD, Fog::PathRasterizer8::CellD, 0, 
1>(Fog::PathRasterizer8*, Fog::RasterFiller*, Fog::R
asterScanline8*, Fog::MemoryBuffer*)'
CMakeFiles\Fog.dir/objects.a(Rasterizer.cpp.obj):Rasterizer.cpp:(.text+0x5618): 
undefined reference to `void Fog::PathRasterizer8_re
nder_st_clip_mask<Fog::PathRasterizer8::ChunkD, Fog::PathRasterizer8::CellD, 1, 
1>(Fog::PathRasterizer8*, Fog::RasterFiller*, Fog::R
asterScanline8*, Fog::MemoryBuffer*)'
CMakeFiles\Fog.dir/objects.a(Rasterizer.cpp.obj):Rasterizer.cpp:(.text+0x5647): 
undefined reference to `void Fog::PathRasterizer8_re
nder_st_clip_mask<Fog::PathRasterizer8::ChunkQ, Fog::PathRasterizer8::CellQ, 0, 
1>(Fog::PathRasterizer8*, Fog::RasterFiller*, Fog::R
asterScanline8*, Fog::MemoryBuffer*)'
CMakeFiles\Fog.dir/objects.a(Rasterizer.cpp.obj):Rasterizer.cpp:(.text+0x5665): 
undefined reference to `void Fog::PathRasterizer8_re
nder_st_clip_mask<Fog::PathRasterizer8::ChunkQ, Fog::PathRasterizer8::CellQ, 1, 
1>(Fog::PathRasterizer8*, Fog::RasterFiller*, Fog::R
asterScanline8*, Fog::MemoryBuffer*)'
CMakeFiles\Fog.dir/objects.a(Rasterizer.cpp.obj):Rasterizer.cpp:(.text+0x5694): 
undefined reference to `void Fog::PathRasterizer8_re
nder_st_clip_mask<Fog::PathRasterizer8::ChunkD, Fog::PathRasterizer8::CellD, 1, 
0>(Fog::PathRasterizer8*, Fog::RasterFiller*, Fog::R
asterScanline8*, Fog::MemoryBuffer*)'

What version of the product are you using? On what operating system?
Latest SVN on Windows 7 64-bit OS using MingW64 GCC 4.6.0

Please provide any additional information below.
I attach a patch I made to compile the sources on the mentioned 
platform/compiler

Original issue reported on code.google.com by jay3dli...@gmail.com on 10 Aug 2011 at 5:23

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you for your patch, it will be applied after I do commit I'm preparing. 
Some parts fix also GCC compilation (mainly parts where typename keyword is 
missing).

Thanks

Original comment by kobalicek.petr on 12 Aug 2011 at 6:52

GoogleCodeExporter commented 8 years ago
Just a note.

These issues will be gone. I found the main reason why the error "undefined 
reference to" happens when compiling by GCC. The commit I'm preparing is clear 
under linux and I'm going to test it also with MinGW.

Original comment by kobalicek.petr on 9 Sep 2011 at 7:21

GoogleCodeExporter commented 8 years ago
Fixed, closing

Original comment by kobalicek.petr on 10 Oct 2011 at 7:33