I've written a shared library which is partly used by a Windows application written in Visual Studio 6 (pure C).
The library works flawlessly under Linux, but under Windows something's broken somewhere (it uses some #ifdef WIN32 which might enclose something errornous).
But adding the library DLL as "additional DLLs" to the project in ...
A library can be used in an application in two ways:
Statically-linked
Dynamically-linked
But how to do that using both Visual Studio (windows) & GCC?
I know libraries are distributed only in these 4 ways:
Source
header-only libraries
*.lib files for windows. *.a for linux
*.dll (windows) & *.so (linux).
Source distribution is j...
here's the deal.
i'm using MinGW to build a pythonC module using Swig. when i tell python to load the module, it fails and complains that python cannot find the module.
the funny thing is that the module is in the same directory (cwd) that i'm running python under and the module is named _mod.pyd. (i also have the generated mod.py file...
I am compiling Gtk applications in Windows with MinGW toolchain, but when I run my apps, a command prompt window appears. How can I make this prompt disappear?
...
I'm making a programming learning game for my senior project and I'm looking for a compiler that can compile a DLL that can then be dynamically loaded into a Visual Studio 2008 C++ application.
The important idea here is that the compiler is redistributable. If VS was redistributable I'd be using that.
So far I'm had some success using...
I'm experimenting with WinPcap 4.1.1 libraries for Windows, but I can't manage to compile even example source provided with the library.
I'm getting these errors:
'PCAP_OPENFLAG_PROMISCUOUS' undeclared (first use in this function)
'PCAP_SRC_IF_STRING' undeclared (first use in this function)
And bunch of warnings:
implicit d...
Hello,
My problem is that I am trying to create a DLL of a C++ project which uses Direct Sound source and header files. There is a file called dsound.lib which i need to include. When I compile my code I get following errors
Compiling source file(s)...
RtAudio.cpp
RtAudio.cpp:3477:20: dsound.h: No such file or directory
RtAudio.cpp: In ...
I wrote my own reference counted memory manager c++ (for fun) and I'm sure it isn't perfect ;) . And now when I'm trying to use it I got random SIGTRAP signals. If I comment out every line which are in connection with that memory manager everything runs fine. Getting SIGTRAP-s instead of SIGSEGV is quite strange.
I know that SIGTRAP-s ar...
Here's a simple example:
#include <stdlib.h>
int main(void) {
_set_error_mode(_OUT_TO_STDERR);
return EXIT_SUCCESS;
}
When compiling this program, I get the following problems:
main.c: In function 'main':
main.c:4: error: implicit declaration of function '_set_error_mode'
main.c:4: error: '_OUT_TO_STDERR' undeclared (first u...
Once again, I play with MinGW inline assembly.
#include <stdio.h>
int foobar(int);
int main(){
int n = 0;
printf("Number: ");
scanf("%d", &n);
printf("\n%d",foobar(n));
return 0;
}
int foobar(int num){
int result = 0;
asm(".intel_syntax noprefix\n");
asm("mov eax, num\n");
asm("add eax, 110b\n");
asm("sub eax, 2\n");
as...
So, I installed the MinGW base tools according to the instructions given and everything went fine.
Now, when I try to call gcc from the Command Prompt, still nothing happens. How do I use gcc?
...
Just now I found that static libraries in *nix systems, in other words *.a libraries
are nothing but archives of relocatables(*.o files) in ar fromat.
What about static libraries(*.lib files) in windows? Which format are they in?
I found an article: http://www.microsoft.com/msj/0498/hood0498.aspx which explains *.lib file structure. ...
Hi folks,
Summing up, my problem consists on compiling g95 objects inside a C++ application.
Actually, I'm constructing an interface for an old fortran program.
For this task, I'm using the wxWidgets GUI library, and calling fortran subroutines when necessary.
At the beginning, I was developing the entire project compiling my fortran fi...
I compiled a simple hello world C module for Python and it works correctly in everything I've tried but IDLE. Here's what I type to test it:
>>> import hello
>>> hello.say_hello('Justin')
I have tried this using Python from the command prompt(I'm using Windows), in Eclipse's PyDev, and with PieDream and they all print out Hello Justin...
I have installed Vim and MinGW on my machine, so I try to create Hello World then compile in in Vim and everything work fine. However when I type :make it show error 'make' not recognized as an internal or external command.
I already added variable path to C:\MinGW\bin. I want to know how to configure Vim or my machine to allow make com...
I'm relearning UNIX commands to use git on windows using MINGW32.
When I launch a program, for example "$ notepad hello.txt" I can't use the shell again until I close the notepad file or CTRL-C in the shell.
How do I essentially fork a new process so I can use both programs?
...
Is there possibility to compile windows service using only mingw c++ compiler and library?
I assume that it is possible to use compiler with Visual Studio standard library and means, but want to do to this almost fully opensourced.
Any experience?
...
After reading about the problem of passing empty std::string objects between DLLs and EXEs, I am concerned about the configure options used to build my gcc / libstdc++. More specific I want to know if --enable-fully-dynamic-string was used during ./configure.
I'm using MinGW 4.4.0 on Windows XP.
Does anybody know the configuration use...
I use GNUStep to compile Objective-C on Windows 7 using GCC and MinGW. I'd like to be able to automate the "make" instruction (with make files) from Notepad++ and have any complier errors reported to Notepad++s console window.
Edit:
What I am trying to do is script GNUStep/Bash to login to the right directory, build the directory, then ...