News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Code:: Blocks isn't compiled

Started by proggi, July 08, 2017, 10:14:28 AM

Previous topic - Next topic

proggi


-------------- Clean: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------

Cleaned "Code::Blocks wx2.8.x - tinyXML"

-------------- Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------

g++.exe -Wall (invalid) -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -m64 -I(invalid)\include -I(invalid)\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -ID:\CodeBlocks\codeblocks\MinGW\bin\g++.exe -c D:\codeblocks-16.01.release\src\base\tinyxml\tinystr.cpp -o .objs\base\tinyxml\tinystr.o
g++.exe: error: (invalid): No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

oBFusCATed

You have to set the cb_release_type global variable to something, most often -g or -g -O2 if you want a release build. See Settings -> Global variables.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

proggi

I put everything by default from the website. New installation

-------------- Clean: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------

Cleaned "Code::Blocks wx2.8.x - tinyXML"

-------------- Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------

g++.exe -Wall (invalid) -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -O2 -m64 -I(invalid)\include -I(invalid)\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude\tinyxml -c D:\codeblocks-16.01.release\src\base\tinyxml\tinystr.cpp -o .objs\base\tinyxml\tinystr.o
g++.exe: error: (invalid): No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

proggi

Here image of settings.
if to click "Reset default" they not incorrect will be!

Jenna

Quote from: proggi on July 08, 2017, 11:00:50 AM
Here image of settings.
if to click "Reset default" they not incorrect will be!
Quote from: oBFusCATed on July 08, 2017, 10:33:06 AM
You have to set the cb_release_type global variable to something, most often -g or -g -O2 if you want a release build. See Settings -> Global variables.
Please read more carefully, if you get hints how to fix this !
Go to "Settings -> Global variables" and edit the value ov "cb_release_type" to any non-empty value, which is valid on your compilers commandline.
If yoiu don't want (or need) a secific switch, just use a space (" ").

proggi

file  \src\plugins\compilergcc\resources\compilers\options_gcc.xml  incorrected!


-------------- Clean: scintilla in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------

Cleaned "Code::Blocks wx2.8.x - scintilla"

-------------- Build: scintilla in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------

g++.exe -Wall D:\CodeBlocks\MinGW -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -D__WX__ -DWINVER=0x0501 -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -I(invalid)\include -I(invalid)\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Isdk\wxscintilla\src\scintilla\include -Isdk\wxscintilla\src\scintilla\src -Isdk\wxscintilla\src\scintilla\lexlib -c D:\codeblocks-16.01.release\src\sdk\wxscintilla\src\PlatWX.cpp -o .objs\sdk\wxscintilla\src\PlatWX.o
D:\codeblocks-16.01.release\src\sdk\wxscintilla\src\PlatWX.cpp:8:23: fatal error: wx/wxprec.h: No such file or directory
#include "wx/wxprec.h"
                       ^
compilation terminated.
Process terminated with status 1 (0 minute(s), 7 second(s))
1 error(s), 31 warning(s) (0 minute(s), 7 second(s))

proggi

I copied wx/setup
Code:: Blocks swears on #include "wx/setup.h"

Quotefrom D:\codeblocks-16.01.release\src\sdk\wxscintilla\src\PlatWX.cpp:8:
D:/CodeBlocks/MinGW/include/wx/platform.h:136:22: fatal error: wx/setup.h: No such file or directory

Jenna

Either add a binary wxWidgets which is compatible to your compiler or use a self-compiled one and fix the global variable "wx".

I never had to copy wx/setup.h manually on a correctly installed wxWidgets on windows.


proggi

I copied WX now here such errors:

D:/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (2 minute(s), 45 second(s))
2 error(s), 390 warning(s) (2 minute(s), 45 second(s))

proggi

#10
  I mean correctly I understand that this development environment can't be collected from source codes?
You understand, I need the environment which I can itself, compile, finish.
  How to me to compile this environment?

stahta01

#11
How did you build wxWidgets?

Post the command you used to build wxWidgets!

Edit: Or post the location you got already built wxWidgets libraries from?
Include the filename of the download(s).

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

proggi

#12
Quote from: stahta01 on July 08, 2017, 05:08:20 PM
How did you build wxWidgets?

Post the command you used to build wxWidgets!

Edit: Or post the location you got already built wxWidgets libraries from?
Include the filename of the download(s).

Tim S.

I put WxWidgets in a format of source codes in the folder of the compiler http://tdm-gcc.tdragon.net/download

https://www.wxwidgets.org/downloads/ Windows Installer (47 MB)
I transferred everything that there is set I to the folder of the compiler.

Quotesdk_events.o .objs30_64\sdk\searchresultslog.o .objs30_64\sdk\selecttargetdlg.o .objs30_64\sdk\templatemanager.o .objs30_64\sdk\toolsmanager.o .objs30_64\sdk\uservarmanager.o .objs30_64\sdk\workspaceloader.o .objs30_64\sdk\xtra_res.o  -o devel30_64\codeblocks.dll -Wl,--enable-auto-image-base -Wl,--export-all-symbols -Wl,--add-stdcall-alias -Wl,--enable-auto-import -Wl,--no-undefined  -lshfolder -ltxml30_64 -lwxscintilla_cb -lsqplus30_64 -lsqstdlib30_64 -lsquirrel30_64 -lgdi32 -lwxmsw30u
D:/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u
collect2.exe: error: ld returned 1 exit status

Jenna

Quote from: proggi on July 08, 2017, 05:35:47 PM
Quote from: stahta01 on July 08, 2017, 05:08:20 PM
How did you build wxWidgets?

Post the command you used to build wxWidgets!

Edit: Or post the location you got already built wxWidgets libraries from?
Include the filename of the download(s).

Tim S.

I put WxWidgets in a format of source codes in the folder of the compiler http://tdm-gcc.tdragon.net/download

https://www.wxwidgets.org/downloads/ Windows Installer (47 MB)
I transferred everything that there is set I to the folder of the compiler.

Quotesdk_events.o .objs30_64\sdk\searchresultslog.o .objs30_64\sdk\selecttargetdlg.o .objs30_64\sdk\templatemanager.o .objs30_64\sdk\toolsmanager.o .objs30_64\sdk\uservarmanager.o .objs30_64\sdk\workspaceloader.o .objs30_64\sdk\xtra_res.o  -o devel30_64\codeblocks.dll -Wl,--enable-auto-image-base -Wl,--export-all-symbols -Wl,--add-stdcall-alias -Wl,--enable-auto-import -Wl,--no-undefined  -lshfolder -ltxml30_64 -lwxscintilla_cb -lsqplus30_64 -lsqstdlib30_64 -lsquirrel30_64 -lgdi32 -lwxmsw30u
D:/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u
collect2.exe: error: ld returned 1 exit status

You show,that you did not read the links I posted before.
Please stop wasting our time and try to follow the advices you get or we will not be able to help you.

proggi

Quote from: jens on July 08, 2017, 05:44:26 PM
Quote from: proggi on July 08, 2017, 05:35:47 PM
Quote from: stahta01 on July 08, 2017, 05:08:20 PM
How did you build wxWidgets?

Post the command you used to build wxWidgets!

Edit: Or post the location you got already built wxWidgets libraries from?
Include the filename of the download(s).

Tim S.

I put WxWidgets in a format of source codes in the folder of the compiler http://tdm-gcc.tdragon.net/download

https://www.wxwidgets.org/downloads/ Windows Installer (47 MB)
I transferred everything that there is set I to the folder of the compiler.

Quotesdk_events.o .objs30_64\sdk\searchresultslog.o .objs30_64\sdk\selecttargetdlg.o .objs30_64\sdk\templatemanager.o .objs30_64\sdk\toolsmanager.o .objs30_64\sdk\uservarmanager.o .objs30_64\sdk\workspaceloader.o .objs30_64\sdk\xtra_res.o  -o devel30_64\codeblocks.dll -Wl,--enable-auto-image-base -Wl,--export-all-symbols -Wl,--add-stdcall-alias -Wl,--enable-auto-import -Wl,--no-undefined  -lshfolder -ltxml30_64 -lwxscintilla_cb -lsqplus30_64 -lsqstdlib30_64 -lsquirrel30_64 -lgdi32 -lwxmsw30u
D:/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u
collect2.exe: error: ld returned 1 exit status

You show,that you did not read the links I posted before.
Please stop wasting our time and try to follow the advices you get or we will not be able to help you.
As it is possible to extend a platform and to say that she can bring together herself.

Where then it is clarified that in order that to bring together her, it is necessary чтото to download, to set up somewhere....