Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: lawme on August 03, 2010, 08:21:43 am
-
when using wxSmith, wxWidgets project will build faild
i has used 2.8.10 and 2.9.1, and find that,
if the project sets to use wxSmith, the error bellow will take place.
Build Messages
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x1d0)||undefined
reference to `jpeg_resync_to_restart'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x412)||undefined
reference to `jpeg_std_error'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xc55)||undefined
reference to `jpeg_destroy_compress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xcb1)||undefined
reference to `jpeg_CreateCompress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xd0f)||undefined
reference to `jpeg_set_defaults'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xdd5)||undefined
reference to `jpeg_set_quality'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xe8b)||undefined
reference to `jpeg_start_compress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xef0)||undefined
reference to `jpeg_write_scanlines'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xf1c)||undefined
reference to `jpeg_finish_compress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xf2a)||undefined
reference to `jpeg_destroy_compress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x2224)||undefined
reference to `jpeg_std_error'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x24ca)||undefined
reference to `jpeg_destroy_decompress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x2828)||undefined
reference to `jpeg_CreateDecompress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x2852)||undefined
reference to `jpeg_read_header'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x28e9)||undefined
reference to `jpeg_start_decompress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x2932)||undefined
reference to `jpeg_finish_decompress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x2940)||undefined
reference to `jpeg_destroy_decompress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x2c4a)||undefined
reference to `jpeg_read_scanlines'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x2ed1)||undefined
reference to `jpeg_finish_decompress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x2edf)||undefined
reference to `jpeg_destroy_decompress'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x26a)||undefined
reference to `TIFFClientOpen'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x2ca)||undefined
reference to `TIFFClientOpen'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x304)||undefined
reference to `TIFFReadDirectory'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x311)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x436)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x45c)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x482)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x4a2)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x4bd)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x7ff)||undefined
reference to `TIFFScanlineSize'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x831)||undefined
reference to `TIFFScanlineSize'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x839)||undefined
reference to `_TIFFmalloc'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x870)||undefined
reference to `TIFFDefaultStripSize'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x886)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x963)||undefined
reference to `TIFFWriteScanline'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1573)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x158b)||undefined
reference to `_TIFFfree'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1628)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1644)||undefined
reference to `_TIFFfree'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1798)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x2ff0)||undefined
reference to `TIFFSetDirectory'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x3085)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x335b)||undefined
reference to `TIFFGetField'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x3376)||undefined
reference to `TIFFGetField'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x339b)||undefined
reference to `TIFFGetFieldDefaulted'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x3a02)||undefined
reference to `_TIFFmalloc'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x3ae0)||undefined
reference to `_TIFFfree'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x419c)||undefined
reference to `TIFFReadRGBAImage'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x4231)||undefined
reference to `_TIFFfree'|
D:\wxWidgets-2.9.1\lib\gcc_lib\libwxmsw29u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x445d)||undefined
reference to `TIFFGetField'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
-------------------------------------------------------------------
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x2d1)||undefined
reference to `jpeg_resync_to_restart'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x30a)||undefined
reference to `jpeg_std_error'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x388)||undefined
reference to `jpeg_destroy_decompress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x3cf)||undefined
reference to `jpeg_CreateDecompress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x3fa)||undefined
reference to `jpeg_read_header'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x446)||undefined
reference to `jpeg_start_decompress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x48a)||undefined
reference to `jpeg_finish_decompress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x498)||undefined
reference to `jpeg_destroy_decompress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x544)||undefined
reference to `jpeg_read_scanlines'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x5ed)||undefined
reference to `jpeg_finish_decompress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x5fb)||undefined
reference to `jpeg_destroy_decompress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x930)||undefined
reference to `jpeg_std_error'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x9ae)||undefined
reference to `jpeg_destroy_compress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x9e5)||undefined
reference to `jpeg_CreateCompress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xa3e)||undefined
reference to `jpeg_set_defaults'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xb2d)||undefined
reference to `jpeg_set_quality'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x113e)||undefined
reference to `jpeg_start_compress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x11b2)||undefined
reference to `jpeg_write_scanlines'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x11cc)||undefined
reference to `jpeg_finish_compress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x11da)||undefined
reference to `jpeg_destroy_compress'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x557)||undefined
reference to `TIFFClientOpen'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x5b7)||undefined
reference to `TIFFClientOpen'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x66f)||undefined
reference to `TIFFSetWarningHandler'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x67b)||undefined
reference to `TIFFSetErrorHandler'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x779)||undefined
reference to `TIFFSetWarningHandler'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x785)||undefined
reference to `TIFFSetErrorHandler'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x85f)||undefined
reference to `TIFFSetDirectory'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x890)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x8b6)||undefined
reference to `TIFFGetField'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x8d0)||undefined
reference to `TIFFGetField'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x8f1)||undefined
reference to `TIFFGetFieldDefaulted'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x933)||undefined
reference to `_TIFFmalloc'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x969)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x9d2)||undefined
reference to `_TIFFfree'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x9dd)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xa32)||undefined
reference to `TIFFReadRGBAImage'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xa63)||undefined
reference to `_TIFFfree'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xa79)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xbd4)||undefined
reference to `_TIFFfree'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xbdf)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xc36)||undefined
reference to `TIFFReadDirectory'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xc47)||undefined
reference to `TIFFClose'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xd20)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xd42)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xd64)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xd7f)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xd9a)||undefined
reference to `TIFFSetField'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1350)||undefined
reference to `TIFFScanlineSize'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1378)||undefined
reference to `TIFFScanlineSize'|
D:\wxWidgets-2.8.10\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1380)||undefined
reference to `_TIFFmalloc'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
===========================================================
1). my platform:
XP, MingW, gcc/g++ 3.4.5
2). my directory:
D:\wxWidgets-2.9.1\build\msw
3). DOS command line:
mingw32-make -f makefile.gcc BUILD=release
after about 90 minutes more, wxWidgets-2.9.1 had been built.
then in Code::Blocks, i created a new project, but wrote none word in the files.
i built the project, and got message as above.
Please tell me, how to resolve this problem.
Thanks advance.
-
if the project sets to use wxSmith, the error bellow will take place.
[...]
3). DOS command line:
mingw32-make -f makefile.gcc BUILD=release
Your project's build options concerning the configuration of wxwidgets do not match the one you used for compiling wxwidgets. Either you compile wxWidgets as setup by default for the wxSmith project, or (the easier way) you make sure that you configure your projects as it is needed for your wxWidgets configuration.
-
Thank you for the inspiration.
the operation is:
project -> build options -> link settings -> (link libraries ) "Add" button
from the dialog of file choice, choose two files:
1). D:\wxWidgets-2.9.1\lib\gcc_lib\libwxjpeg.a
2). D:\wxWidgets-2.9.1\lib\gcc_lib\libwxtiff.a
then the build success.