I have an issue that is similar to the other thread with the same title...whe I execute a simple wx prog, there is a brief flash on the screen, and then the window immediately closes itself.
Here is some ref info:
----------------------------
Environment Vars:
CodeLiteDir=e:\CodeLite
WXCFG=gcc_dll\mswu
WXWIN=E:\wxWidgets-3.1.3
PATH=E:\CodeLite;E:\CodeLite\mingw64\bin;$PATH
Build Settings - Advanced Tab:
mo entries for Include or Libraries
Settings - Tools Tab:
E:/CodeBlocks/MinGW/bin/...
Build Output:
C:\WINDOWS\system32\cmd.exe /C E:/CodeLite/mingw64/bin/mingw32-make.exe -j6 SHELL=cmd.exe -e -f Makefile
"----------Building project:[ wxTest10 - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'E:/CodeLite/MyProjects/wxTest10/wxTest10'
E:/CodeLite/mingw64/bin/g++.exe -o ..\build-Debug\bin\wxTest10 @../build-Debug/wxTest10/ObjectsList.txt -L. -mthreads -LE:/wxWidgets-3.1.3/lib/gcc_dll -lwxmsw31u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -mwindows
mingw32-make.exe[1]: Leaving directory 'E:/CodeLite/MyProjects/wxTest10/wxTest10'
====0 errors, 0 warnings====
Output View:
Working directory is set to: E:\CodeLite\MyProjects\wxTest10\wxTest10
Executing: cmd /C E:\CodeLite\MyProjects\wxTest10\wxTest10\wxTest10.exe
Program exited
Note:
1. When I go to the windows folder build-debug/bin and click on the .exe application file, it gives an error saying "The code execution cannot proceed because wxmsw313u_gcc_custom.dll was not found,.."
2. I also changed the Linker to static linking and that didnt help either.
thx in adv to anyone that is able to help get the configuration right.
Greer T.
Terminal Closes Immediately
-
- CodeLite Curious
- Posts: 8
- Joined: Thu May 24, 2018 3:51 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Terminal Closes Immediately
This is classic windows issue: you build a program that requires DLLs you must place the DLLs in a folder which exists in your PATH or put them next to the executable
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 8
- Joined: Thu May 24, 2018 3:51 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Terminal Closes Immediately
yeah, i copied all avail dlls to the folder, but the custome dll wasntthere to copy
I'm currently recompiing the wx313 to see if it will be there this time...
i guess i've located the specific prob...when the make completes, there is an error:
makefile.gcc:5329: recipe for target '..\..\lib\gcc_dll\wxmsw313u_gcc_custom.dll' failed
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw313u_gcc_custom.dll] Error 1
unsure what to do about ths.atm.
UPDATE:
Re-did the make using
doing it this way changed the error. I'll keep posting progress on this for the benefit of anyone else that might be interested.
I'm currently recompiing the wx313 to see if it will be there this time...
i guess i've located the specific prob...when the make completes, there is an error:
makefile.gcc:5329: recipe for target '..\..\lib\gcc_dll\wxmsw313u_gcc_custom.dll' failed
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw313u_gcc_custom.dll] Error 1
unsure what to do about ths.atm.
UPDATE:
Re-did the make using
Code: Select all
mingw32-make -f makefil .gcc BUILD=release