Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
2
Using Code::Blocks / Re: How to solve the problems of FLTK in Code::Blocks
« Last post by hrz on Yesterday at 08:28:47 pm »
Quote
I have changed the code now

Well, you have changed the code, the compiler (MiinGW to Clang) and the OS (Windows to Linux) in a row.

You must add a jpeg library to the linker, probably libjpeg.so
I don't know how to add it. In my FLTK library, I can't find anyone who's name just like libjpeg.
I read the codes in "libfltk_jpeg.h", the functon proto just match it. So i think it is the problem of code::blocks setting.
3
Quote
I have changed the code now

Well, you have changed the code, the compiler (MiinGW to Clang) and the OS (Windows to Linux) in a row.

You must add a jpeg library to the linker, probably libjpeg.so
4
Using Code::Blocks / Re: How to solve the problems of FLTK in Code::Blocks
« Last post by hrz on Yesterday at 06:07:46 pm »
Did you remove 5.1 version completely?

Post a full rebuild log, read this
I have changed the code now. But I still failed. The compile message is:
1.clang++ -L/home/hrz/fltk-sdk/lib -o bin/Debug/graph obj/Debug/Graph.o obj/Debug/GUI.o obj/Debug/main.o obj/Debug/Simple_window.o obj/Debug/Window.o  /usr/local/lib/libfltk.a -lXrender -lXcursor -lXfixes -lXext -lXft -lfontconfig -lpthread -ldl -lm -lX11  /home/hrz/fltk-sdk/lib/libfltk.a /home/hrz/fltk-sdk/lib/libfltk_forms.a /home/hrz/fltk-sdk/lib/libfltk_gl.a /home/hrz/fltk-sdk/lib/libfltk_images.a
/usr/bin/ld: /home/hrz/fltk-sdk/lib/libfltk_images.a(Fl_JPEG_Image.cxx.o): in function `Fl_JPEG_Image::Fl_JPEG_Image(char const*)':
Fl_JPEG_Image.cxx:(.text+0xea): undefined reference to `jpeg_std_error'
/usr/bin/ld: Fl_JPEG_Image.cxx:(.text+0x1b7): undefined reference to `jpeg_finish_decompress'
/usr/bin/ld: Fl_JPEG_Image.cxx:(.text+0x1e3): undefined reference to `jpeg_destroy_decompress'


I still can't solve it!
5
Using Code::Blocks / Re: How to solve the problems of FLTK in Code::Blocks
« Last post by hrz on Yesterday at 05:26:28 pm »
Did you remove 5.1 version completely?

Post a full rebuild log, read this
I am so sorry that I make a mistake! The stroutrup has said:   Beware: this is code recovered from a loss of my previous website and my contain errors. Bug fixes and corrections are welcome. But I haven seen it. I am so sorry!
6
Did you remove 5.1 version completely?

Post a full rebuild log, read this
7
Using Code::Blocks / Re: How to solve the problems of FLTK in Code::Blocks
« Last post by hrz on Yesterday at 01:12:13 pm »
If you're using GCC 5.1 it is probably too old to have support for this function. Are you using c++11 mode?
8
Using Code::Blocks / Re: How to solve the problems of FLTK in Code::Blocks
« Last post by hrz on Yesterday at 10:25:57 am »
Yes! my gcc version is 5.1. I've updated to 8.1 now. The errors of <cmath> disapear. but it still fail.
Errors like this:
1.MinGW\include/winnt.h:2399:2: error: #error "undefined processor type"
#error "undefined processor type"
  ^~~~~

2.include/crtdefs.h:35:1: error: '__MINGW_EXTENSION' does not name a type; did you mean 'FL_MINOR_VERSION'
__MINGW_EXTENSION typedef unsigned __int64 size_t;
 ^~~~~~~~~~~~~~~~~
3.include/crtdefs.h:138:9: error: '__time64_t' does not name a type; did you mean '__time32_t'?
 typedef __time64_t time_t;
         ^~~~~~~~~~
4.include/stdlib.h:348:58: error: 'size_t' has not been declared
 _CRTIMP int __cdecl __MINGW_NOTHROW mblen  (const char*, size_t);
                                                          ^~~~~~
5.include/stdlib.h:356:47: error: 'size_t' was not declared in this scope
_CRTIMP void* __cdecl __MINGW_NOTHROW malloc (size_t) __MINGW_ATTRIB_MALLOC;
                                               ^~~~~~
............
Process terminated with status 1 (0 minute(s), 10 second(s))
50 error(s), 2 warning(s) (0 minute(s), 10 second(s))

It still have 50 errors,but this time isn't  the <cmath>.

Thank you very much!!!
9
Using Code::Blocks / Re: Problem with svn 12446
« Last post by oBFusCATed on Yesterday at 09:50:05 am »
Can you post a backtrace? Does it crash if you use night builds provided by us?
10
Using Code::Blocks / Re: How to solve the problems of FLTK in Code::Blocks
« Last post by oBFusCATed on Yesterday at 09:48:16 am »
If you're using GCC 5.1 it is probably too old to have support for this function. Are you using c++11 mode?
Pages: [1] 2 3 4 5 6 ... 10