I have only previously used visual studio for developing c++ but I've just moved to netbeans and am having some issues.
I got mingw installed so that my projects will compile but I dont know how to add external libraries to that. I want to use a static library, not a dll.
The library I specifically am looking at is libpng
I hope this ...
How to configure mingw32 to cross-compile Direct3D Apps for Windows? Is there any possibility? I have actually succeeded compiling code from this tutorial: http://www.directxtutorial.com/Tutorial9/B-Direct3DBasics/dx9B4.aspx - using Code::Blocks on Kubuntu with i586-mingw32msvc-g++. I needed to add #define UNICODE and remove the #pragma ...
Hello,
I am getting this error whenever I try to run GCC outside of it's installation directory (E:\MinGW\bin).
So, lets say I am in E:\code and have a file called one.c. Running:
gcc one.c -o one.exe will give me this error:
gcc: CreateProcess: No such file or directory
The only workaround is to navigate to it's installation direc...
I'm trying to compile ECL 10.4.1 on my Win7 64-bit box, but am having issues.
I've attempted the build with both mingw32/MSYS and mingw-w64/MSYS, using the exact packages linked to here. Both have failed.
With mingw32: ./configure passes, make fails as follows:
gcc -DECLDIR="\"/usr/local/lib/ecl-10.4.1\"" -I. -Ic:/my_home/ecl-10.4.1/...
I have found the rand_s function, part of the CRT, to be extremely useful while developing my application. However, it is my understanding that it is not prototyped in recent MinGW header files.
Therefore I am asking for a comprehensive means of either providing or prototyping such a function. I have considered using an #ifdef MINGW st...
My new PC is Dell Inspiron 580s which is a x64 machine. Before which I used to code in TURBO C++ in my x86 machine.
Since I was unable to run TURBO C++ in the new system. I installed NetBeans 6 IDE for which we need to install the compiler (CYGWIN) manually and so I did. But I'm unable to code in NetBeans.
After lots of search I heard ...
I installed Netbeans 6.9.1 with C++ support. I also installed MinGW.
When I create a C++ project and run it, I get this:
I checked the c++ configuration in Netbeans: (looks good)
Perl is installed on my PC under c:\perl
I tried reinstalling Netbeans and I tried removing Netbeans and Perl then reinstalled Netbeans. It didn't work ...
I have a great problem with this porting
building usual sdl is simple
http://www.libsdl.org/extras/win32/mingw32/README.txt
zlib libjpeg libpng giflib libtiff
installing was hard but i did
then SDL_image install was simple
I took my sources from simple lerning project
make clean && make
g++ compile good
at the linking stage hid very...
All works good if I insert sdl-config output manually.
How to fix this bug?
g++ -O3 -c 'sdl-config --cflags' test.cpp
g++.exe: sdl-config --cflags: no such dile or directory
...
I have a communication library built on top of Qt and Google Protocol Buffers. It's currently being built with MinGW/GCC on Windows. My goal is to use the same library in C# on .NET, with the help of a thin wrapper on top using C++/CLI (bridging the unmanaged code with managed code).
I tried using the MinGW produced DLL directly in my ...
lets make the simpliest application:
result:
ok. it works.
lets add some SDL with default dynamic linking here!
result:
works great. at stdout.txt we can see "puchuu"
lets change our makefile a little.
just group 2 object files to the static lib:
result:
Who is to blame?
Me or mingw developers?
is it clear to...
I have some static library. for example libpuchuu.a
it depends on dynamic library. for example libSDL.so
(but of cource I have libSDL.a)
Creation of libpuchuu.a is simple:
ar -rcs object_file_1.o object_file_2.o
But I can't link my project with libpuchuu.a!
undefined references attack my console!
At some forum I have found such sente...
This following code (well, almost the same) counts page views under Linux allright, but counts them double under Windows.
Can someone figure out why?
package main
import (
"fmt"
"http"
)
func main() {
println("Running")
http.HandleFunc("/", makeHomeHandler())
http.ListenAndServe(":8080", nil)
}
// this version compiles...
I have C program I compile with mingw on Windows. It works fine but requires MSVCRT.DLL. I want to link that statically (like I can do in Visual Studio). Is this possible?
I tried -static flag to gcc and it didn't make any change.
What about C++ program using also standard C++ library?
...
Hi,
I've a problem with my CDT. Code completion doesn't work for standard library classes.
For example in this code after entering x. and presing ctrl+space IDE doesn't display the list of API elements.
#include
void f() {
string x = "sss";
x.
}
String and vector header files are available in Includes directories. When I press ...
I am writing code that needs to compile and run without error on both Unix/Mac (with GCC) and on Win32 (with mingw). The code has to run in a wide variety of different environments and it has loadable modules that I can't control, so I typically protect each module with a setjmp() and signal().
I see that WIN32 has both setjmp() and si...
I would like to do some C++ development on Windows using Eclipse and the CDT plugin. I use Eclipse Helios SR1 and have installed the CDT plugin. I have also installed MinGW and now I wrote a simple "Hello World" in Eclipse.
hello.cpp
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
return 0;
...
Under my version of msysgit, I can't use process substitution.
cat <(echo 'foo')
sh.exe": cannot make pipe for process substitution: Function not implemented
If I upgraded to the latest version of msysgit, would its version of msys / mingw be able to handle process substitution?
My current version of msysgit is 1.7.0.2.msysgit.0 and ...
I'm trying to compile Redis for Windows x64 with no luck.
I tried different things
Cygwin works perfectly but GCC produces only 32 bit executables
Compling with Mingw-w64 will not work without a lot of code changes (My understanding is that MinGw does not provide POSIX compatibility for Windows)
Microsoft Services for Unix has an outd...
I have looked through both the CodeBlocks and MinGW FAQ and wiki to no avail. As stated above I am a noob.
I want CodeBlocks to act like a Unix compiler in that it overwrites a single output file every time it compiles unless told to do otherwise.
In Unix:
[cc example.c] -> [a.out], [cc example2.c] -> [a.out]. If I want to save the ou...