Hi, 2012/4/3 rajeshwari b <[email protected]>: > HI all, > I tried compiling a win32 API based code in TDM-GCC (with mingw w64 and > GCC4.6.1). The exe gets created but when running the exe, i get a blank > window. I used the following command with flags for compile and link i.e., > g++ -m32 -mwin32 -o FileNextFile FileNextFile.cpp > Am attaching the source code for reference (is a download). > Rgds, > Raj007
First don't use -mwin32 option. What should it be? You want to have a console-application, so you don't need to specify any '-m' option at all. Next, fix you code. That you app doesn't start could be related to the fact that libstdc++ or libgcc DLLs aren't in path. You can avoid the dependency to those DLL files by specifiying to g++ frontend the additional option '-static'. Otherwise take care that those DLLs are found by app when launched. Kai ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
