Programming :: How To Compile Program For Windows
Feb 10, 2010I have a c program and its related libraries for Linux. But, I need a EXE file to run in windows.
please let me know how to compile the program for windows
I have a c program and its related libraries for Linux. But, I need a EXE file to run in windows.
please let me know how to compile the program for windows
My Fedora 14 have installed gcc-4.5.1-4.fc14.x86_64,qt-4.7.1-5.fc14.x86_64,
I don't know how to use g++ to compile QT program.
Do I need to set PATH or something else?
i am not able to compile my test program which uses gtkmozembed.As i am very new to this, i dont know which are the packages to be installed and how to compile
[Code]...
I am using the C++ compiler G++ to compile my programs on Linux Mint 8 - Gnome.
I recently installed QT and when I tried to compile a simple "Hello World!" program it gave me this error:
Quote:
This is the code in HelloWorldQt.cpp:
Code:
I have tried using GTK instead but I get a similar error.
I want to capture the ip packets, so i installed
I am getting the following errors.
I write a small program to learn overflow. But when I input more than 5 characters (exceed the boundaries of the buffer),I can't get the character that I have initialized. I used gcc4.5.2 to compile this program. Then I used gdb to debug it. I found that when I input more than 5 characters, the variable 'test' was set to 0(ASCII code or '00').
[Code]...
I wanted to compile a program for my openwrt router from source i already have but to add an option. I ran ./autogen.sh in the terminal but it returned aclocal not found.
View 5 Replies View RelatedI am new to the whole concept of makefiles, and I'm trying to compile and build my program using a makefile template I have found. My project consists of three directories: "source", where my .cpp files are (source1.cpp, source2.cpp, source3.cpp), "include", where my .h files are (header1.h, header2.h, header3.h), and "obj", where the object files are to be stored (obj1.o, obj2.o, obj3.o). In the project root directory is my makefile, which is as follows:
Code:
EXEC = myexe
CC = g++
IDIR = include
SDIR = source
ODIR = obj
[Code]..
If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?
View 5 Replies View RelatedI have C++ source code(*.cpp) files that expects it's header files in System's include folder which is/usr/include.The cpp files has include lines like this:
Code:
#include <some.h>
#include <another.h>
[code]...
I have made two source files named as sum.c and average.cI have included sum.c in average.c
both files in Documents directory.when i compile average.ot followingerror"average.c:4:22: fatal error: sum.c: No such file or directorycompilation terminated.How to solve this issue?I have tried to copy sum.c to usrinclude folder but unable to copy
I have been working on this for a long time.
I could get the static libcurl library ( a "libcurl.lib" file and a "curl.h" file), which supposed to be working under Windows.
Yet I tried Visual c++ 6.0 but it wasn't working at all.
Some idea on that ? I don't mind to try MinGW and Dev C++ if it will really work. (Cygwin is not good since it require client to have cygwin.dll in run-time folder).
i'm a college student studying pc programing, and i was given today a special work and i have to program using miranda... which i've never used it >.< can anyone give me a hand to where to download, how to compile, and a simple tutorial for making a simple program or something?
View 3 Replies View RelatedWhat sort of libraries can i use for coding of sniffer program for windows and linux? The sniffer that i want to code is for capturing the list of connected clients to AP wirelessly. I do know that the wireless NIC needs to be in 'monitor' mode in both windows and linux.
View 4 Replies View RelatedRunning Ubuntu and writing simple C programs. I need 2 text windows, the one I have started in, and a second to display some debug information. I can start a second screen using popen("/usr/X11R6/bin/xterm" "w"), and I get my new text window. However, it is running a shell and I can't send any info to it!
View 4 Replies View RelatedI'm using ubuntu 9.04; I have a large project in windows that I want to "port" it in linux.
It uses IPC mechanism "Shared memory" and also "Critical Section" APIs in windows, but unfortunately I have no good reference to change these windows APIs to their equivalent in linux?
Is there a comprehensive documentation or reference for this issues? I mean a table containing the equivalent APIs or systemcalls in windows and linux! For example, what's an alternative for the "InitializeCriticalSection" API in linux? Or an alternative for "CRITICAL_SECTION" structure? Or even an alternative for "RegOpenKeyEx", although we don't have registry in linux!!
I bought a set of 3 laser sensors and it came with a software and its C++ source code for windows to receive the lasers info through the serial port. Since the entire project is running on Linux, I need to port the windows code to Linux. At the present moment, I already can receive the data from each of the 3 sensors, but the info is coming concatenated! Tracking down the original windows code, I found that it is probably happening cause I didn't ported these lines to my Linux version:
Code:
COMMTIMEOUTS CommTimeouts;
[...]
CommTimeouts.ReadIntervalTimeout = 2;
[code]....
I've searched already about how to specify the serial port timeouts on Linux, but didn't find a solution. how to port these lines to Linux or maybe where to find more info about how to set serial port timeouts on Linux?
I am trying to compile a very simple 32-bit program on my 64-bit fedora 12 install, but it won't let me.
I get this error.
I tested it on the school server (64 bit Red Hat Server), and it compiled flawlessly without any warnings. I think I am missing some libraries, but don't know which.
I was using my college's unix server (ubuntu presumably) to compile programs in the laboratory. Now, i have installed Opensuse 11.4 with gnome3. I have installed the Developers pattern, and almost all the packages that looked relevant (which came up when i searched for libgc , gcc, and all). Now, i cant compile a program:
Code:
/*program to test file I/O and getch/putch functionaliny in gcc*/
#include<stdio.h>
int main()
{ FILE *fi;
char ch;
[Code]....
I can't compile a C program form terminal using gcc by Code Blocks 8.02 is able to do so.
Code:
#include<stdio.h>
int main(void)
{
printf("Hello World
[Code]....
im writing from ubuntu i have made a c program and im wondering how can i compile it for being able to run on mac
View 2 Replies View RelatedI followed the steps from the this website [URL]..but after I run: sudo make I got this output:
[Code]...
from the commend line i went to compile the c program by giving the commend "gcc first.c -o first" but the commend line showing gcc is not found. iam using fedora 13 what can i do to compile the program . the program i used to compile is below
#include<stdio.h>
main()
{
printf("hello word
");
}
Following is the IDL program found on the internet but i dont know how to compile and execute (even dont know can it be done under linux).
Code:
when I try to compile a program that uses SFML with g++, this appears:
Code:
/usr/local/include/SFML/Window/OpenGL.hpp:47:23: fatal error: GL/gl.h: No such file or directory
What are the steps to compile a ns2 program?
View 2 Replies View RelatedI want to cross compile gtk program from linux to arm. I am using ubuntu10.04. How can I cross compile it for arm. I have tried this but this is my output:
root@habesh-laptop:~/habesh/gtk# /root/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -o trail1 base1.c 'pkg-config --cflags --libs gtk+-2.0'
cc1: warning: include location "/usr/include/gtk-2.0" is unsafe for cross-compilation
cc1: warning: include location "/usr/include/atk-1.0" is unsafe for cross-compilation
cc1: warning: include location "/usr/include/cairo" is unsafe for cross-compilation .....
since last days I am trying to run a simple c / cpp program using eclipse in my newly installed fedora 13, but every time it says either "program file not specified" or "binary error"
View 10 Replies View RelatedI have used a new header file named curses.h in my program.when i try to compile my program it shows me the following error "No such path or directory".What may be the problem?A part of the program is shown below
#include<unistd.h>
#include<stdlib.h>
#include<curses.h>
[code]...
I have a simple testing program like this:
/*The Parallel Hello World Program*/
#include <stdio.h>
#include <mpi.h>
[code]...
My program is, I can't compile this program using gcc, and I can't find something like pgcc in ubuntu. How should I compile this program? After compiling, what should I do to run this program? Can I use something like mpirun to run it? I want to try to use both cores of my computer to run it and make it shows Node 1 also besides Node0.