U++ framework - RDF feed
type: channel
description: Do not panic. Ask here before giving up.
items: Compiling error with UPP 4810
items: Re: Compiling error with UPP 4810

Compiling error with UPP 4810
type: item
description: Hi all, Recently I updated my favorite development tool (U++ of course!!) to version 4810. All my applications were compiled normally in debug mode but I got errors when trying the compilation under optimal release mode ( ). I'm using the MSC Vista SDK as compiler. So I am wondering if some changes has been done in libraries of 4810 requiring to move to MSC Seven SDK tool. In order to be able to get compilation in release mode, I moved back to UPP 4705 and all my problems have been solved. Compiling errors are shown hereafter: - CtrlLib ( GUI MT MSC9 WIN32 MSC ) (1 / 32) ----- Sql ( GUI MT MSC9 WIN32 MSC ) (2 / 32) ----- Controls4U ( GUI MT MSC9 WIN32 MSC ) (3 / 32) ----- Functions4U ( GUI MT MSC9 WIN32 MSC ) (4 / 32) bsdiff.cpp C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\ws2def.h(91) : warning C4005: 'AF_IPX' : macro redefinit ion C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\winsock.h(460) : see previous definition of 'AF_ IPX' C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\ws2def.h(127) : warning C4005: 'AF_MAX' : macro redefini tion C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\winsock.h(479) : see previous definition of 'AF_ MAX' C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\ws2def.h(163) : warning C4005: 'SO_DONTLINGER' : macro r edefinition C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\winsock.h(402) : see previous definition of 'SO_ DONTLINGER' C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\ws2def.h(207) : error C2011: 'sockaddr' : 'struct' type redefinition C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\winsock.h(485) : see declaration of 'sockaddr' C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\ws2def.h(385) : error C2143: syntax error : missing '}' before 'constant' C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\ws2def.h(385) : error C2143: syntax error : missing ';' before 'constant' C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\ws2def.h(385) : error C2059: syntax error : 'constant…
creator: BioBytes
date: 2012-04-27T18:56:34-00:00

Re: Compiling error with UPP 4810
type: item
description: Hello Biobytes I have compiled some packages like Controls4U_demo using MSC9 and SDK v6.1 in "Optimal" mode successfully. Could you try to reproduce the problem in an existing package or upload one complete one with the problem?
creator: koldo
date: 2012-04-27T20:33:36-00:00

Re: Compiling error with UPP 4810
type: item
description: Hi Koldo , First thank you for trying to help me. I have installed UPP 4810 in another directory on my HD and tried to compiled Controls4U_Demo package from Bazaar and I got the following errors from the MSC compiler v. 6.1: ----- CtrlLib ( GUI MT MSC9 WIN32 MSC ) (1 / 26) LabelBase.cpp Button.cpp Switch.cpp EditField.cpp Text.cpp LineEdit.cpp DocEdit.cpp ScrollBar.cpp HeaderCtrl.cpp ArrayCtrl.cpp MultiButton.cpp PopupTable.cpp DropList.cpp DropChoice.cpp Static.cpp Splitter.cpp FrameSplitter.cpp SliderCtrl.cpp ColumnList.cpp Progress.cpp AKeys.cpp RichTextView.cpp Prompt.cpp Help.cpp DateTimeCtrl.cpp Bar.cpp MenuItem.cpp MenuBar.cpp ToolButton.cpp ToolBar.cpp ToolTip.cpp StatusBar.cpp TabCtrl.cpp TreeCtrl.cpp DropTree.cpp DlgColor.cpp ColorPopup.cpp ColorPusher.cpp FileList.cpp FileSel.cpp FileSelUtil.cpp PrinterJob.cpp Windows.cpp Win32.cpp TrayIconWin32.cpp TrayIconX11.cpp Update.cpp CtrlUtil.cpp LNGCtrl.cpp Ch.cpp ChWin32.cpp ChGtk0.cpp ChGtk.cpp CtrlLib.icpp Creating library... CtrlLib: 54 file(s) built in (5:46.05), 6408 msecs / file, duration = 349422 msecs ChGtk0.obj : warning LNK4221: no public symbols found; archive member will be inaccessible TrayIconX11.obj : warning LNK4221: no public symbols found; archive member will be inaccessible D:/Fichiers Patrick/Projets Ultimate/Out/Bazaar/CtrlLib/MSC9.Gui.Mt\CtrlLib.lib (7636110 B) created in (0:00. 76) ----- Controls4U ( GUI MT MSC9 WIN32 MSC ) (2 / 26) Controls4U.cpp DrawingCanvas.cpp ActiveX.cpp IExplorerBrowser.cpp FirefoxBrowser.cpp VLCPlayer.cpp axvlc_idl.c SliderCtrlX.cpp StarIndicator.cpp Creating library... Controls4U: 9 file(s) built in (1:03.43), 7048 msecs / file, duration = 65344 msecs D:/Fichiers Patrick/Projets Ultimate/Out/Bazaar/Controls4U/MSC9.Gui.Mt\Controls4U.lib (1631828 B) created in (0:00.18) ----- plugin/gif ( GUI MT MSC9 WIN32 MSC ) (3 / 26) gifupp.cpp gif.icpp Creating library... plugin/gif: 2 file(s) built in (0:07.39), 3695 msecs / file, duration = 7437 msecs D:/Fichiers Patrick/Pro…
creator: BioBytes
date: 2012-04-28T10:16:48-00:00

Re: Compiling error with UPP 4810
type: item
description: Hello BioBytes I cannot reproduce the error using any compiler and mode. However I have removed some unnecessary includes in bsdiff.cpp and bspatch.cpp. This way I hope the problem will be solved.
creator: koldo
date: 2012-04-28T12:57:47-00:00

Re: Compiling error with UPP 4810
type: item
description: Hi Koldo, Thank you for amendments in concerned cpp files, I will try it with last update of UPP. In the meantime, I do not worry too much about it as all my projects compile correctly (Debug and Release Optimal modes) when using UPP 4705 and MSC SDK 6.1 Thank for your help Regards Biobytes
creator: BioBytes
date: 2012-04-28T15:42:25-00:00

Re: Compiling error with UPP 4810
type: item
description: Hello Koldo, Just to make the point about the compilation issue. I just update my UPP to version 4874 and now all projects (including Controls4U_Demo) is compiling perfectly either in debug and release modes using either MSC9 (SDK 6.1) or MSC10 (SDK 7.1). I did not understand really why but I think some change(s) have been implemented between UPP 4705 and UPP 4874 as the same compilation issue occurred on 2 different computers (my personal PC at home and the machine I used in my company). Moving to UPP 4874 has solved the problem on both computers (!). When compiling in release optimal mode a project including the MySql layer for direct connection to the server (native mode), I have noticed a "bug" in the MySql.cpp file (line 275) as shown hereafter: if(result) { DDUMP(rows);// This is the problem in optimal mode int fields = mysql_num_fields(result); info.SetCount(fields); convert.Alloc(fields, false); for(int i = 0; i < fields; i++) { MYSQL_FIELD *field = mysql_fetch_field_direct(result, i); SqlColumnInfo& f = info[i]; f.name = field->name; switch(field->type) { case FIELD_TYPE_TINY: case FIELD_TYPE_SHORT: case FIELD_TYPE_LONG: case FIELD_TYPE_INT24: f.type = INT_V; break; case FIELD_TYPE_LONGLONG: case FIELD_TYPE_DECIMAL: case FIELD_TYPE_FLOAT: case FIELD_TYPE_DOUBLE: f.type = DOUBLE_V; break; case FIELD_TYPE_DATE: f.type = DATE_V; break; case FIELD_TYPE_DATETIME: case FIELD_TYPE_TIMESTAMP: f.type = TIME_V; break; case FIELD_TYPE_VAR_STRING: case FIELD_TYPE_STRING: convert[i] = true; default: f.type = STRING_V; break; } f.width = field->length; f.scale = f.precision = 0; } .... I had to modify it as follows: if(result) { #if DEBUG //new line DDUMP(rows); #endif //new line int fields = mysql_num_fields(result); ... Hope this could be helpful Regards Biobytes
creator: BioBytes
date: 2012-05-03T19:59:26-00:00

Re: Compiling error with UPP 4810
type: item
description: Excellent
creator: koldo
date: 2012-05-04T06:01:53-00:00