Thread overview | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
August 20, 2003 Am I right in thinking...... | ||||
---|---|---|---|---|
| ||||
Hello Am I correct in thinking that if I include a path in the include directory of the idde, that it will also search any folders in that directory as well or are they seperate include paths ?? The reason I ask is that when trying to compile a wxWindows app, it keeps complaining that it can find wx/wxprec.h, which is located in libs\wx. but it just complains that it cant find or open this file, it does exist, as I have checked, my understanding was that even if it doesnt search subdirecories the wx/ should be enough anyway to tell it to look in that dir. I do not get this problem from command line, and I have doubly checked the path is correct any ideas ? TIA |
August 20, 2003 Re: Am I right in thinking...... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Yeric | Yeric wrote: > Hello > > Am I correct in thinking that if I include a path in the include directory > of the idde, that it will also search any folders in that directory as well > or are they seperate include paths ?? No wrong they are seperate paths > The reason I ask is that when trying to compile a wxWindows app, it keeps > complaining that it can find wx/wxprec.h, which is located in libs\wx. wxWindows has the habbit of doing includes like: #include "wx/blahthehah.h" When this file is located in includewxwx, you have to add the include -I<wxwin-path>\include Good Luck Arjan |
August 20, 2003 Re: Am I right in thinking...... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Arjan Knepper | > wxWindows has the habbit of doing includes like:
> #include "wx/blahthehah.h"
>
> When this file is located in include\wx, you have to add the include -I<wxwin-path>\include
>
> Good Luck
> Arjan
>
|
August 20, 2003 Re: Am I right in thinking...... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Arjan Knepper | > No wrong they are seperate paths I see thanks :) > > > The reason I ask is that when trying to compile a wxWindows app, it keeps > > complaining that it can find wx/wxprec.h, which is located in libs\wx. > still trying from idde I have basically added all the defines from the makefile to the project. added correct include paths now :) all three files from project, dialogs.cpp, .h, .rc added the include path for wx/wxprec.h imported the shell32 file as well but it is still moaning about missing defines, I basically cut and pasted them from the makefile so they should be ok. Jan says that you have been building wxwindows from idde for ages now, please can you tell me what steps I am missing from above to build wxapps Cheers Yeric > Good Luck > Arjan > |
August 21, 2003 Re: Am I right in thinking...... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Yeric | Just incase you can help me Arjan, then this is the output from build of minimal sc ..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\SAMPLES\MINIMAL\minimal.cpp -m n -C -WA -S -3 -a8 -c -gf -DWXMSW -D__WIN32__ -D__WIN95__ -D__WXDEBUG__ -IO: \wxWin\CVS\wxWindows\wxWindows\wxWindows\include -oO:\wxWin\CVS\wxWindows\wx Windows\wxWindows\d_mars\ rcc -32 -IO:\wxWin\CVS\wxWindows\wxWindows\wxWindows\include -oO:\wxWin\CVS\ wxWindows\wxWindows\wxWindows\d_mars\minimal.res ..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\SAMPLES\MINIMAL\minimal.rc link /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 /RC :O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\d_mars\minimal.RES @minimal.LNK Error: No Match Found for Export/ENTRY - : WinMainCRTStartup Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(ap p) (1438384): Symbol Undefined _OleUninitialize@0 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(ap p) (1438384): Symbol Undefined _OleInitialize@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(ap p) (1232640): Symbol Undefined _InitCommonControls@0 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(ut ils) (1232636): Symbol Undefined _AdjustTokenPrivileges@24 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(ut ils) (1232636): Symbol Undefined _LookupPrivilegeValueA@12 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(ut ils) (1232640): Symbol Undefined _OpenProcessToken@12 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(ut ils) : Symbol Undefined _GetUserNameA@8 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(cm ndata) : Symbol Undefined _PrintDlgA@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(cm ndata) : Symbol Undefined _CommDlgExtendedError@0 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(fo ntdlg) (1665868): Symbol Undefined _ChooseFontA@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(co lordlg) (1232640): Symbol Undefined _ChooseColorA@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(st atbr95) (1232632): Symbol Undefined _CreateStatusWindowA@16 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(dr optgt) (1232632): Symbol Undefined _CoLockObjectExternal@12 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(dr optgt) : Symbol Undefined _RevokeDragDrop@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(dr optgt) (1232636): Symbol Undefined _RegisterDragDrop@8 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(dr optgt) : Symbol Undefined _IID_IDropTarget Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(dr optgt) : Symbol Undefined _IID_IUnknown Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(sp inbutt) : Symbol Undefined _CreateUpDownControl@48 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(cl ipbrd) (1232636): Symbol Undefined _ReleaseStgMedium@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(cl ipbrd) (86): Symbol Undefined _OleGetClipboard@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(cl ipbrd) (86): Symbol Undefined _OleSetClipboard@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(cl ipbrd) (1232636): Symbol Undefined _OleFlushClipboard@0 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) (86): Symbol Undefined _ImageList_Draw@24 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) (1232632): Symbol Undefined _ImageList_SetBkColor@8 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) (1232632): Symbol Undefined _ImageList_GetImageCount@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) (1232636): Symbol Undefined _ImageList_Remove@8 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) (1232632): Symbol Undefined _ImageList_ReplaceIcon@12 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) (1232636): Symbol Undefined _ImageList_Replace@16 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) (1232632): Symbol Undefined _ImageList_AddMasked@12 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) : Symbol Undefined _ImageList_Add@12 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) (1232632): Symbol Undefined _ImageList_GetIconSize@12 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) (1232636): Symbol Undefined _ImageList_Destroy@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(im aglist) (1232636): Symbol Undefined _ImageList_Create@20 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(re gistry) : Symbol Undefined _RegCloseKey@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(re gistry) (1232640): Symbol Undefined _RegOpenKeyExA@20 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(re gistry) (1232640): Symbol Undefined _RegEnumKeyA@16 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(re gistry) (1232640): Symbol Undefined _RegEnumValueA@32 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(re gistry) (1232640): Symbol Undefined _RegSetValueExA@24 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(re gistry) (1232636): Symbol Undefined _RegQueryValueExA@24 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(re gistry) (1232640): Symbol Undefined _RegDeleteValueA@8 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(re gistry) (1232640): Symbol Undefined _RegDeleteKeyA@8 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(re gistry) (1232640): Symbol Undefined _RegCreateKeyA@12 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(re gistry) (1232636): Symbol Undefined _RegQueryInfoKeyA@48 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(da taobj) (1232640): Symbol Undefined _IID_IDataObject Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(da taobj) (1232636): Symbol Undefined _IID_IEnumFORMATETC Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(fi ledlg) (1232636): Symbol Undefined _GetOpenFileNameA@4 Error: O:\WXTEST\MIN\..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\LIB\wx_sc.lib(fi ledlg) (1232636): Symbol Undefined _GetSaveFileNameA@4 Warning: USE16/USE32 Mismatch : DGROUP Warning: 32-bit Segments Inappropriate for 16-bit Segmented output Error: O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\d_mars\minimal.RES (15146924): Cannot bind 32-bit resources to 16-bit target Error: O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\d_mars\minimal.OBJ(minimal) (1632584): Cannot Reach TARGET from FRAME at Relative 0002BH from O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\d_mars\minimal.OBJ(minimal) (1632584): Segment _TEXT O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\d_mars\minimal.OBJ(minimal) (1632584): FRAME = Frame of Group FLAT 0000 O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\d_mars\minimal.OBJ(minimal) (1632584): TARGET = External Symbol ?CheckBuildOptions@wxAppConsole@@SA_NPBD0@Z 0164CH O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\d_mars\minimal.OBJ(minimal) (1632584): FIXUPP Type = 32-bit Conditional JMP Lines Processed: 179860 Errors: 50 Warnings: 2 Build failed This is exactly how I have the build set up from idde Target Project settings Debug Platform Windows NT Target Type executable Uses none selected Character Type Singe Byte Allow Project To Be Built checked Automatically Parse checked Build Compiler = Char behaviour signed prototyping autoprototype International Characters None Defines -DWXMSW -D__WIN32__ -D__WIN95__ -D__WXDEBUG__ Code Generation Generate stack frame selected Target cpu 386 struct Alignment Quad Word Header Files No Headers Memory models flat Code optimization none Windows Prolog/Epilog Set EXE defaults, Define _Windows Output nothing selected Warnings All Debug Information Standard Linker Debug Information, Case Sensitive, Delete EXE/DLL on Error, Export Case Sensitive Selected Packing & Map File No Map File Definitions Name Minimal Dexcription wxWindows Application, Heap Size 4048 Stub WINSTUB.EXE, Stack Size 16000 Segments Code Segment, Execute Read Set Imports/Exports Blank Resource Compiler Use Predefined Macros, Generate Warnings, 32 Bit Resources selected, Default Hex Language 409 Make Use IDDE Make, Track Dependencies Moderate Selected External Make Use IDDE Make selected Librarian Greyed Out Directories Include wxWindows Include Directory Library Directories wxWindows Lib Directory Compiler Output Directory d_mars Target Output Directory D_mars Cheers Yeric |
August 21, 2003 Re: Am I right in thinking...... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Yeric | Update figured out that I had forgotten to add the -D__NT__ and -D_WINDOWS Defines Ok this is as far as I have evver got building anything with wxWindows in IDDE but nowit is failing on these errors which appear to be in the wx headers, now I am pretty sure it is a bad thing to do to edit these files manually <g> so I guess there must bea way to surpress these errors somehow from IDDE ?? here are the errors only 5 this time <g> sc ..\..\WXWIN\CVS\WXWINDOWS\WXWINDOWS\WXWINDOWS\SAMPLES\MINIMAL\minimal.cpp -m n -C -WA -S -3 -a8 -c -gf -D_WINDOWS -DWXMSW -D__WIN32__ -D__NT__ -D__WIN95_ _ -D__SC__ -D__WXDEBUG__ -IO:\wxWin\CVS\wxWindows\wxWindows\wxWindows\includ e -IO:\wxWin\CVS\wxWindow Error: O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\include\wx\msw\dde.h(103): inline storage class is illegal in this context Error: O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\include\wx\msw\dde.h(102): undefined identifier 'm_serviceName' Error: O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\include\wx\msw\dde.h(108): '=', ';' or ',' expected Error: O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\include\wx\msw\dde.h(110): 'm_serviceName' previously declared as something else O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\include\wx\msw\dde.h(110): It was declared as: int O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\include\wx\msw\dde.h(110): It is now declared: wxString Fatal Error: O:\wxWin\CVS\wxWindows\wxWindows\wxWindows\include\wx\msw\dde.h(111): too many errors Lines Processed: 90597 Errors: 5 Warnings: 0 Build failed Any Ideas Please Yeric |
August 21, 2003 Re: Am I right in thinking...... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Yeric | Take a look at http://www.digitalmars.com/~arjan Good Luck Arjan |
August 22, 2003 Re: Am I right in thinking...... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Arjan Knepper | "Arjan Knepper" <arjan@ask.me> wrote in message news:bi3j3h$1h02$2@digitaldaemon.com... > Take a look at http://www.digitalmars.com/~arjan > > Good Luck > Arjan Arjan Thanks very much for this, I cant believe I never saw this link before I must be blind, saying that I have not checked the site for a couple of weeks, I have been battling with wxWindows and IDDE and c++ in general, some people think I am mad not to learn C++ first then wxWindows, but my feelings are why cant I do both? <g>, but this has been good for me, I have learnt plenty about the similarities of the idde checkboxes and commandline flags, defines etc. Just one thing, the cvs sources now compile fine with makefiles even examples build ok, I believe Chris Elliot has been working on the makefiles for dmc and wxwindows. One other thing, and this is not meant as a dig or criticism, but will these patch files not break wxWindows ?? I am just curious, as other compilers build without changing source files, however I prefer DMC to others I have used because of raw speed and the debugger is the most complete I have seen for any compiler, apart from it kills IDDE if you are watching variables quit from debugger to IDDE and then try debugger again, but since IDDE is so fast to load it isnt a worry. One last thing and please dont take offence, but are you and Jan the same man ?? It is just I figured Jan might be a short for Arjan ? if you are then thanks for your help as Jan in previous posts. Thanks Yeric > |
August 22, 2003 Re: Am I right in thinking...... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Yeric | > One last thing and please dont take offence, but are you and Jan the same
> man ?? It is just I figured Jan might be a short for Arjan ? if you are then
> thanks for your help as Jan in previous posts.
>
Arjan is my brother...
ManiaC++
Jan Knepper
|
August 22, 2003 Re: Am I right in thinking...... | ||||
---|---|---|---|---|
| ||||
Posted in reply to Yeric | Yeric wrote: > "Arjan Knepper" <arjan@ask.me> wrote in message > news:bi3j3h$1h02$2@digitaldaemon.com... > >>Take a look at http://www.digitalmars.com/~arjan >> >>Good Luck >>Arjan > > > Arjan > Thanks very much for this, I cant believe I never saw this link before I > must be blind, saying that I have not checked the site for a couple of > weeks, I have been battling with wxWindows and IDDE and c++ in general, some > people think I am mad not to learn C++ first then wxWindows, but my feelings > are why cant I do both? <g>, but this has been good for me, I have learnt > plenty about the similarities of the idde checkboxes and commandline flags, > defines etc. The page is there since yesterday evening. > Just one thing, the cvs sources now compile fine with makefiles even > examples build ok, I believe Chris Elliot has been working on the makefiles > for dmc and wxwindows. Yes he has. > One other thing, and this is not meant as a dig or criticism, but will these > patch files not break wxWindows ?? Not as long as you only use them for the 2.4.1 version. I am just curious, as other compilers > build without changing source files, however I prefer DMC to others I have No that is bacause there were already lot of #define for those compilers already in the sources to make is wxWindows compile with those compilers. DigitalMars was not supported util shortly. > used because of raw speed and the debugger is the most complete I have seen > for any compiler, apart from it kills IDDE if you are watching variables > quit from debugger to IDDE and then try debugger again, but since IDDE is so > fast to load it isnt a worry. <g> > One last thing and please dont take offence, but are you and Jan the same > man ?? It is just I figured Jan might be a short for Arjan ? if you are then > thanks for your help as Jan in previous posts. No but we are both build from the same "templates". Jan is my elder brother. Arjan |
Copyright © 1999-2021 by the D Language Foundation