Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Building & using U++ without TheIDE
Re: Building & using U++ without TheIDE [message #11417 is a reply to message #11415] |
Wed, 12 September 2007 09:20 |
|
mirek
Messages: 13980 Registered: November 2005
|
Ultimate Member |
|
|
sergei wrote on Tue, 11 September 2007 20:25 |
I don't know what -D means (doesn't appear in c++ --help), but if these are defines, I need to define: flagGUI, flagGCC, flagDEBUG, flagDEBUG_FULL, flagBLITZ, flagWIN32. Should've done this last time (got overhauled with info due to verbose and missed these defines).
|
Yes, check...
Quote: |
t.h is really weird. I've removed namespace from it, got back to the compiler error.
|
What is the error? (Important part is from where t.h was included).
Quote: |
Writing UPP::LngEntry__ solved the problem, but I still don't understand how INITBLOCK_ is defined there (t.h is included outside UPP namespace). Well, actually I don't understand how INITBLOCK works at all, it looks like some kind of lambda for C++, does it actually execute the code (register) upon program loading, without calling anything?
|
It creates a special class and single global object of that class; uses constructor of the class to insert initialization code. It is pure macro hackery; the name of class and of object is created based on the line number.
Quote: |
I'm getting closer to building U++. It took 43 minutes to get to the first error, which is in RichText (last package to be built). What bothers me is that the build time is so long, and that I get the same warnings over and over again. It's as if Core.h gets re-included for every CPP, and warnings from all its includes repeat (impossible since Core.h has include guards). I might later try to set Core.h to get precompiled and see if it helps.
|
Yes, it gets included all the time. Anyway, long build times is the thing that theide solves too (with theide, BLITZ and HYDRA - I can completely rebuild UWord, including U++ library, in 24s seconds with mingw and in 14s with MSC...)
Quote: |
The RichText error was in Para.cpp. It included an NText.h (non-existant file), and also used Paragraph (non-existant class).
|
Once again, follow the suggestions. The list of files that really are part of project is displayed in theide and also listed in .upp files inside package directories (also there is the dependency). (OTOH, thanks, this looks like abandoned file that was forgot in the folder).
Quote: |
#ifndef USE_MSDOS_MEMMGR /* make sure user got configuration right */
You forgot to define USE_MSDOS_MEMMGR in jconfig.h. /* deliberate syntax error */
#endif
That's a funny way to say something's wrong
Defined USE_MSDOS_MEMMGR in jconfig.h, got an error in jmemansi.c:
METHODDEF(void)
read_backing_store (j_common_ptr cinfo, backing_store_ptr info,
void FAR * buffer_address,
long file_offset, long byte_count)
{
if (fseek(info->temp_file, file_offset, SEEK_SET))
ERREXIT(cinfo, JERR_TFILE_SEEK);
if (JFREAD(info->temp_file, buffer_address, byte_count)
!= (size_t) byte_count)
ERREXIT(cinfo, JERR_TFILE_READ);
}
Structure has no temp_file member.
|
Well, these files are not from us, but this is jpeg library. Anyway, I think the problem might be the same as with RichText - redundant file compiled. Please check in theide or in .upp file whether this file is part of package. Same for Local.cpp.
(OTOH, this is really good, as we are now able to remove forgotten files .
Quote: |
P.S. I've found: http://en.wikipedia.org/wiki/Single_Compilation_Unit
Pros: only 1 file to compile, probably faster static lib compiling, also icpp issue solution
Cons: INITBLOCK-s will have to be replaced with unique INITBLOCK_(X)-s, possibly other similar changes, every new CPP will have to be added to that file that is compiled (it could be auto-generated, though).
|
Ah, nice, somebody else noticed the basic principle of BLITZ too. Anyway, the difference is that BLITZ does all things automagically, solving the .icpp problem, creating the "SCU" and managing this so that frequently modified files are compiled separately.
Quote: |
P.S.2 Thinking of it now, RichImage.icpp has 2 INITBLOCK-s, how can TheIDE compile these in one source file? It's redefined in Code::Blocks, unless I replace it with INITBLOCK_(X) with different X.
|
See above. They get different names within single file, which is OK as the global variable is static.
Mirek
|
|
|
|
|
Building & using U++ without TheIDE
By: sergei on Sun, 09 September 2007 22:03
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 09 September 2007 23:47
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 01:48
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 10:16
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 10:30
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 12:25
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 13:56
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 15:53
|
|
|
Re: Building & using U++ without TheIDE
By: Ulti on Mon, 10 September 2007 16:56
|
|
|
Re: Building & using U++ without TheIDE
By: Zardos on Mon, 10 September 2007 17:17
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 17:57
|
|
|
Re: Building & using U++ without TheIDE
By: Zardos on Tue, 11 September 2007 09:25
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:22
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 17:57
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:09
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:12
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:15
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 20:59
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 21:31
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 22:35
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:16
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 11 September 2007 02:21
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:21
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 02:25
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 09:20
|
|
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 18:20
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 18:47
|
|
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 20:04
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 22:01
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 12:31
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 14:25
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 15:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 17:34
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 18:00
|
|
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 18:31
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 01:19
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 13 September 2007 05:45
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 02:21
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 15:43
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 13 September 2007 23:58
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 14 September 2007 02:21
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 20:11
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 21:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:00
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 22:16
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:48
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 16 September 2007 01:43
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 16 September 2007 01:55
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 16 September 2007 01:58
|
|
|
Re: Building & using U++ without TheIDE
By: cbpporter on Mon, 17 September 2007 07:53
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 10:10
|
|
|
Re: Building & using U++ without TheIDE
By: cbpporter on Mon, 17 September 2007 10:53
|
|
|
Re: Building & using U++ without TheIDE
By: tvanriper on Tue, 18 September 2007 02:35
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 18:57
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:06
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 11:07
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 11:22
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 13:50
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 15:46
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 18:33
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 22:20
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 22:28
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 23:47
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 18 September 2007 00:08
|
|
|
Re: Building & using U++ without TheIDE
By: unodgs on Tue, 18 September 2007 08:30
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 00:32
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 03:04
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 18:05
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 18 September 2007 19:04
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 00:43
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 09:34
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 10:12
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 10:45
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 11:18
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 11:33
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 11:39
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 12:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 12:39
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 11:40
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 14:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 23:06
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 23:56
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 20 September 2007 05:39
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 13:29
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 20 September 2007 14:51
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 15:11
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 21:57
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 21 September 2007 03:36
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Fri, 21 September 2007 09:49
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 21 September 2007 13:41
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 22 September 2007 00:16
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 22 September 2007 00:18
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 23 September 2007 10:54
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 23 September 2007 16:22
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 23 September 2007 20:51
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 25 September 2007 11:44
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 25 September 2007 16:18
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 25 September 2007 23:07
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 00:52
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 13:41
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 15:13
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 18:25
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 18:44
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 19:26
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 21:01
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 22:56
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 09 October 2007 19:14
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 09 October 2007 23:39
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 10 October 2007 00:02
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 10 October 2007 00:51
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 11 October 2007 05:40
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 15 October 2007 00:35
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 15 October 2007 07:27
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 15 October 2007 10:48
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 15 October 2007 12:18
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 17 October 2007 19:12
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 17 October 2007 21:58
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 17 October 2007 22:54
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 18 October 2007 01:34
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 18 October 2007 14:44
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 18 October 2007 17:49
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 21 October 2007 02:54
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 21 October 2007 22:26
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 22 October 2007 01:39
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 27 October 2007 19:40
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 28 October 2007 02:04
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 29 October 2007 00:38
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 01 November 2007 12:30
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 04 November 2007 12:34
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 05 November 2007 09:06
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 05 November 2007 11:10
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 06 November 2007 14:07
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 06 November 2007 21:19
|
Goto Forum:
Current Time: Tue May 14 20:06:12 CEST 2024
Total time taken to generate the page: 0.03561 seconds
|