Programming :: Can't Compile OS Example?
Apr 22, 2010
I am following this tutorial:But I just can't get it to compile. What do you think is wrong?
Code:
$ nasm -f elf -o loader.o loader.s
[michael:test]$ gcc -o kernel.o -c kernel.c -Wall -Wextra -nostdlib -nostartfiles -
[code]....
View 14 Replies
ADVERTISEMENT
Dec 26, 2010
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?
View 5 Replies
View Related
Apr 21, 2010
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]...
View 1 Replies
View Related
May 26, 2010
compile package C++ with GNU compiler under Linux, I can share my program's
View 3 Replies
View Related
Feb 13, 2011
I am unable to compile C++ program in terminal. Whenever I try to add "#include<iostream.h>" it shows an error and thats why I can not use "cout" and "cin" functions. I installed g++ for this but the problem persists.
View 4 Replies
View Related
Jan 7, 2009
I'm trying to compile a c++ application in KDevelop in Ubuntu 8.10. I get this error on Distclean:
aclocal
autoheader
automake
[code]....
View 19 Replies
View Related
Nov 17, 2009
I have legacy fortran 77 code that used to compile seamlessly using g77 on an old machine. I've tried to recompile it on a new machine (old one is dead) using the original makefile, but the linker fails under g77, while there are persisting syntax errors using gfortran. I have two source files readmixed.f and subroutines.f. Under g77 the object files are produced using
Quote:
$ f77 -c readmixed.f -o readmixed.o
$ f77 -c subroutines.f -o subroutines.o
but the linking fails with
Quote:
$ f77 readmixed.o subroutines.o -o readmixed
subroutines.o(.text+0x0): In function `norm1_':
: multiple definition of `norm1_'
readmixed.o(.text+0x3987): first defined here
[code].....
View 2 Replies
View Related
May 2, 2011
I recently downloaded a tarball which contains a .src file for a program to convert .ttf fonts to .cxf fonts for use in Qcad drawings. how to compile and install this program in linuxmint 9 or ubuntu lucid. What I downloaded from the ribbonsoft.com website is a tarball called ttf2cxf-0.0.0.1-src.tar.gz. It contains a directory /ttf2cxf-0.0.0.1-src, which contains three files: main.cpp, Makefile, and ttf2cxf. I can post the contents of these files. This is not a high priority problem but i have been messing around with this for a while and have made no progress.
View 9 Replies
View Related
Apr 6, 2010
i want compile function c to java under linux. the bashfile comp :
$ cc -fpic -c $(SRCS)
$ ld -shared $(OBJS) -o module.so
i see in www.swig.org
$ comp -java example.i # line 1
$ gcc -c example.c example_wrap.c -I/usr/java/jdk1.6.0_17/include -I/usr/java/jdk1.6.0_17/include/linux # line 2
$ gcc -shared example.o example_wrap.o -mno-cygwin -Wl,--add-stdcall-alias -o example.so #line 3
error line 3 :
/usr/bin/ld: unrecognized option '--add-stdcall-alias'
/usr/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status
View 1 Replies
View Related
Feb 10, 2010
This compiles against g++ template headers but not against the icpc headers.
Code:
#include <string>
#include <vector>
template <typename T>
class MyList : public std::vector< T* >{
};
template <typename T>
class MyListIterator : public MyList<T>::iterator{
};
int main(){
MyListIterator< int > test;
return 0;
}
View 4 Replies
View Related
Feb 10, 2010
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
View 8 Replies
View Related
Mar 15, 2011
My new guy has created several functioning webpages on his machine with TOMCAT 6 with Sun JDK, yet our machines use TOMCAT 5.5 with Open JDK, which his webpages don't show. Do you have any idea how to make them work? The error showing in a browser:
Code:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception org.apache.jasper.JasperException: Unable to compile class for JSP:
[Code]...
View 2 Replies
View Related
Jan 16, 2010
I'm trying to write a helper for the mount utility (mount.truecrypt) and there are some things in the util-linux-ng package that would be helpful. For example, in fstab.c, there is a lock_mtab() function. I want to be able to do something like:
Code:
#include "fstab.h"
int main(int argc, char *argv[])
{
lock_mtab();
[code]....
But I don't know how to compile it. I was trying (naively) something like:
Code:
$ gcc mount.truecrypt.c fstab.c -o mount.truecrypt
But I guess the problem is fstab needs a whole bunch of other stuff. Should I just build the entire util-linux-ng package and then use the output somehow? If anyone is interested in mount.truecrypt (to be compatible with mount and /etc/fstab) you might be interested in giving me a little bit of guidance. I've got enough code to build the actual truecrypt command thus far. In fact, it's useable, but not robust (ie, doesn't lock the mtab, etc). You can browse the source for util-linux-ng here: [URL] and download a tagged release here:[URL]
View 5 Replies
View Related
Sep 2, 2010
I have decided to try out a little bit of c++ programing so I went out and bought me a book "Sams Teach your self C++ in 21 Days" Now I am at the part of the book where you write the hello world script. when I run Code: cc hello.cpp get this
[code]....
View 14 Replies
View Related
Jan 12, 2011
how i could compile for example: a tutorial file of cantera open source files. when i do :g++ example.cpp -o examplei get huge errors such as the header files are not here,...please tell me how i could compile it. ofcourse i have configured the full opensources and i see in /usr/local/cantera/binthat the files are there but i still can not compile and execute any cpp file.
View 2 Replies
View Related
Mar 15, 2009
I work on Fedora 9 and I'm unable to compile my c++ program using the make in the terminal as well as in the IDE-Anjuta.although 'make' works fine with C programs,I get an error that g++ command is not found whenever I try it with C++ programs.
View 3 Replies
View Related
May 26, 2010
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.
View 7 Replies
View Related
Mar 2, 2011
i was trying to Compile my c++ program..cme across this problem....but my c programs are getting compilied without any problem.I am using fedora 14. Below is the way terminal reacted to my program..
gcc prog1.cpp gcc: error trying to exec 'cc1plus': execvp: No such file or directory
View 4 Replies
View Related
Dec 8, 2010
Code:
#if defined(WIN32) || defined(WIN64)
#define WINDOWS
#endif
[code]....
what is the directive thats required to detect a linux system? i want to to be able to detect which platform im compiling on automatically.
View 5 Replies
View Related
Jun 10, 2010
I've got the "OpenCryptoKi" project source from "sourceforge.net" at here:But I don't know how should I compile and build it by "GCC" or "Make"?!I have ubuntu 9.04 and I've set the linux runlevel at 3, but I'm not so familiar with compiling such project at commandline environment of linux
View 6 Replies
View Related
Feb 26, 2010
I want to capture the ip packets, so i installed
I am getting the following errors.
View 7 Replies
View Related
Jan 3, 2011
I want to compile mysql for arm9 linux box, I did not find any good resource.
View 5 Replies
View Related
Jun 22, 2011
how to cross compile the perl script for arm_v5t.le.gcc??downloaded perl script unable to compile from the cross folder as per the readme.txt instruction
View 1 Replies
View Related
Nov 4, 2010
i have just modify tcp.c file in/usr/src/linux/net/ ipv4 location.Now should i compile the complete kernel?if not then how to compile that net/ipv4 package or etc.
View 1 Replies
View Related
Dec 25, 2010
Can anyone tell me what GNUSTep packages do i need to install to compile objective c code ?
Code:
gnustep-back.i686 0.18.0-4.fc14 fedora
gnustep-base.i686 1.20.1-2.fc14 fedora
gnustep-base-devel.i686 1.20.1-2.fc14 fedora
gnustep-base-doc.noarch 1.20.1-2.fc14 fedora
gnustep-examples.i686 1.3.0-3.fc14.1 updates
[Code]...
View 1 Replies
View Related
Mar 4, 2010
I've been trying to work out a way to stop chunks of code being compiled using a variable in my makefile but can't work it out. What I mean is for example in my code I might have.
/****output comms portdata********/
printf("
debug comms port %d",ReadPort("ttys1);
I only wish this code to be compiled when I'm debugging. What I've tried is using #ifdef with
#ifdef COMM_PORT_DEBUG
printf("
debug comms port %d",ReadPort("ttys1);
#endif
Then in my make file I set COMM_PORT_DEBUG to 1 so
DEBUG_DEFS = COMM_PORT_DEBUG=1
I then thought I could put it into my in my link line
all: $(CC) $(CPFLAGS) $(DEBUG_DEFS) $(INC_PATHS) $(SOURCE) -o $(PROGRAM) $(LIB_DIRS) $(GAME_LIBS)
but this gives a
gcc: COMM_PORT_DEBUG=1: No such file or directory
is there a way to do this sort of thing? Or am I barking up the wrong tree?
View 1 Replies
View Related
Feb 19, 2011
I was wondering about a package that can be used to write and compile/run programs in different programming languages. I was also wondering how possible it is to program in Visual Basic 2010 in openSUSE if at all.
View 9 Replies
View Related
Dec 11, 2010
I actually thought there was something wrong with my programming skills.ut after I compiled the same code using Visual Studio, it worked. So here's the code that doesn't seem to be working right with gcc compilers, but they do compile. Note I'm using the Cygwin 3.4.4 version of gcc and 4.5.1 version of gcc from MinGW.
Code: #include <stdio.h>
#include <math.h>
int main()
[code]...
View 5 Replies
View Related
Apr 14, 2011
I need to cross-compile some libs for using in a ARM11 board running Linux (at this time, 2.6.28, but I'll try update it... and for costs reason, maybe it turns on a ARM9 board). The libs are libfprint, libusb-1.0 (that is a requirement of libfprint), libSDL (and some of its extensions) and maybe libsqlite3. How I can make this, with the development files in the host machine (an Ubuntu 10.04 32bits machine) and the runtime files at the host ARM11 Board.
View 6 Replies
View Related
May 21, 2011
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]...
View 8 Replies
View Related