Add this:classd2008 wrote:How to force to use the GTK3 library in Windows? With this code VisualFBE compiles, it doesn't seem to be using the GTK3 library.
Code: Select all
'#ifdef __FB_WIN32__ '#Compile -exx "Form1.rc" '#else '#Compile -exx '#endif '#Region "Form" #define __USE_GTK3__ #libpath "C:\msys64\mingw64\lib" '#libpath "C:\msys64\mingw32\lib" #include once "mff/Form.bi" #include once "mff/CommandButton.bi" Using My.Sys.Forms Type Form1 Extends Form Declare Constructor Dim As CommandButton CommandButton1 End Type Constructor Form1 ' Form1 With This .Name = "Form1" .Text = "Form1" .SetBounds 0, 0, 350, 300 End With ' CommandButton1 With CommandButton1 .Name = "CommandButton1" .Text = "CommandButton1" .SetBounds 60, 70, 210, 90 .Parent = @This End With End Constructor Dim Shared fForm1 As Form1 #ifndef _NOT_AUTORUN_FORMS_ fForm1.Show App.Run #endif '#End Region
Code: Select all
#define __USE_GTK__
You compile with an old version of the MyFbFramework library. Copy the new library to the .../VisualFBEditor/MyFbFramework folderclassd2008 wrote:Error compiler.Code: Select all
C:\FreeBasic\Projects\VisualFBEditor-master\src>C:\FreeBasic\FreeBASIC-1.07.1\fbc32 "VisualFBEditor.bas" -x "../VisualFBEditor32.exe" "VisualFBEditor.rc" -i "../MyFbFramework" C:\FreeBasic\Projects\VisualFBEditor-master\src\frmFind.frm(597) error 18: Element not defined, SelectedTabIndex C:\FreeBasic\Projects\VisualFBEditor-master\src\frmOptions.frm(1130) error 18: Element not defined, TabIndex C:\FreeBasic\Projects\VisualFBEditor-master\src\frmOptions.frm(1141) error 3: Expected End-of-Line, found '=' C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(1421) error 9: Expected expression C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(3117) error 18: Element not defined, DisplayIcons C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(3857) error 3: Expected End-of-Line, found '=' C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(3881) error 3: Expected End-of-Line, found '=' C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(3903) error 3: Expected End-of-Line, found '=' C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(3991) error 3: Expected End-of-Line, found '=' C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(4072) error 9: Expected expression, found '=' C:\FreeBasic\Projects\VisualFBEditor-master\src\Main.bas(4072) error 133: Too many errors, exiting