Programming :: Make Compiles C++ Code?
Aug 8, 2010
I'm developing a new command to be executed on the grub shell. However for some reason the .c file I added doesn't get compiled. How do I notify make of this new file?When you type in the make command, a load of gcc commands come up, where do these come from?
gcc -Ikern -I./kern -I. -I./include -I./gnulib -I./include -Wall -W -DGRUB_LIBDIR="/usr/local/lib/`echo grub/i386-pc | sed 's,x,x,'`" -DLOCALEDIR="" -DGRUB_MACHINE_PCBIOS=1 -DGRUB_UTIL=1 -MD -c -o grub_setup-kern_file.o kern/file.c
I know this because I typed in random letters but the compiler continued on. However tried it on an existing file it came up with a compile time error.
View 3 Replies
ADVERTISEMENT
Nov 8, 2010
Put simply, the following code compiles, but does not work, and I have no clue why (despite reading extensively about rand()). In the interest of full disclosure, this is for a school project.
Code:
/*
* Dice.c
[code]....
View 4 Replies
View Related
Apr 14, 2010
I'm running kubuntu 9.10 in VirtualBox, i wrote the simplest "hello world" program in C, the code compiles, i ran it through a debugger and it seems to run fine. the only problem is nothing gets actually printed to the console.
heres the code:
#include <stdlib.h>
#include <stdio.h>
int main (int argc, char **argv) {
printf("hello world");
[Code].....
View 2 Replies
View Related
Mar 7, 2010
I have tried numerous versions of �Hello World½ examples over the web to display the text on a web page. All the examples work on my local machine in the application viewer, but they donït work when from a web browser. I have tried both Firefox and IE.Some of them include:[URL]
Code:
java.lang.reflect.InvocationTargetException
at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
[code]...
View 14 Replies
View Related
Oct 16, 2010
There could be some needs with to sync the linux box with my psion device :
- emails (iremails sync) <-> mutt or whatever works
- contact psion <-> abook
- data folder ~/home/username/mypsion <-> sync of data
Could someone help a bit in that sence? Is there a willing informaticien for that few lines of code, and make a new package or update/upgrade the irda-utils. Would be so helpful for the community (often, lot of users are moving to linux nowadays..)
View 1 Replies
View Related
Mar 30, 2011
I need to rewrite the selenium java code into its equivalent php code.
View 5 Replies
View Related
Aug 12, 2010
At work, we use Ubuntu to compile large numbers of C, C++, Java, and AIDL files.My system is a Core i7 Quad-Core with 8GiB of RAM. Prior to this install, it ran Ubuntu 9.10, 32-bit. A basic compile took roughly 45 minutes.I just did a clean install with (x)Ubuntu 10.04 64-bit. After setting up the build environment to allow 32-bit libraries (mobile development), a compile took roughly an hour:15.
View 2 Replies
View Related
Jun 21, 2009
I just installed the latest SimplyMepis 8.02, 64 bit and I can only find a driver that compiles with GCC 4.1. This is, of course, not accepted in the installation process, so it shuts down.If someone reading this knows of one, please direct me to a 64 bit Nvidia driver for a GFX260 chipped (XFX) card that will run with GCC 4.3.
View 5 Replies
View Related
Nov 16, 2010
A tiny Linux kernel patch that makes the desktop incredibly more responsive: [URL]...
View 14 Replies
View Related
Feb 26, 2010
I found this page online. And I thought it was really nice, and I really like the way torrentflux was added, thats a must for me. I am wondering if there is a better approach now, or if this approach is still good, and I was just wondering if someone could double-check the code, see if its good. I have an old dell laying around, and I thought it was finally time to put it to good use. So here it is.[URL]..
View 4 Replies
View Related
Dec 29, 2010
/tmp/cctiuwxL.s: Assembler messages:
/tmp/cctiuwxL.s:3534: Error: unknown opcode
/tmp/cctiuwxL.s:3534: Error: unknown opcode
/tmp/cctiuwxL.s:3602: Error: unknown opcode
[code]....
This is the make step error./tmp/cctiuwxL.s is the make temporary dirictory which is distroyed after the make process finises . The problem is how can I hold the /tmp/cctiuwxL.s dirictory .Then I can check it and find out the proiblem.
View 1 Replies
View Related
Mar 20, 2011
When I compile evince from its source code, I am able to run ./configure properly, but when I run make the following output is displayed.
Code:
make all-recursive
make[1]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0'
Making all in cut-n-paste
make[2]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0/cut-n-paste'
Making all in zoom-control
make[3]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0/cut-n-paste/zoom-control' .....
make[3]: *** [libevview.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I am not able to ascertain the source of this error, even though I seem to have the file in question-libevdocument.la. What do I do now to remove this error?
View 8 Replies
View Related
Sep 7, 2010
I was wondering if it is at all possible to use CSS code to make the Gnome panel clock text blink. I Googled a bunch of CSS code which is supposedly used to create a blinking text effect but none work in the Gnome panel clock. Is there any sort of CSS code which can do that? If so, what is it?
View 3 Replies
View Related
Sep 15, 2010
I want to gave much details as possible. working directory (~/a1/shell) in the shell directory i have Makefile. also in the shell directory i have subdirectory's (obj, src, include)
My current Makefile
Quote:
#What needs to be built to make all files and dependencies
clean:
# End of Makefile
I wanted it so: all .o files are created in the obj subdirectory, and my application, sshell, is created in the shell directory.
I am getting this error when i run the make run: No rule to make target 'shell.h', needed by 'shutil.o'. stop
View 1 Replies
View Related
Jun 6, 2011
I am working on a project with a lot of vector math and I'd like to find a way to speed it up.eading about SSE, but I've found no explanation on how to actually use it in code (was looking for some kind of hello-world example, complete with compilation instructions).Does the gcc compiler automatically make use of SSE, if you add the -sse(2,3) option on the command line? Or are their specific functions/libraries you need to call?
View 12 Replies
View Related
May 23, 2011
Is there, by chance, a fancy name to describe code that must be in a program but will never be executed? In one of my (Haskell) programs, I have some error-handling code that must be in the program to keep the compiler happy (due to the type checking). However I know that, due to the logical structure of the program, it is impossible for the code to be evaluated. I am curious if there is a technical name given to code that must exist but cannot be executed.
View 6 Replies
View Related
Jan 14, 2011
I went to compile some "oldish" glx code. The code compiles great but when I go to run it I get a crash. With X Error of failed request: BadMatch (in .....running ddd causes my whole system to lock up when I call the glx function XOpenDisplay. After a few attempts I thought I'd download a demo from the net, I choose nehe opengl tutorial 2, I compiled and ran but even on a net tutorial I get the same error
./lesson02
XF86VidModeExtension-Version 2.2
Got Doublebuffered Visual!
[code]....
View 1 Replies
View Related
Jul 20, 2011
I have the following code:
Code:
#!/bin/bash
function dx {
[Code].....
So essentially, it finds dx files, sorts them by numbers at the beginning, then performs the dx function I made (loops over all of the #-protein.dx and #-water.dx files).
It works fine when I'm running it on Ubuntu 11.04. However, when I try to run it on OSX, I get the following error:
Code:
mh320m01:DA_R02 janickij$ ./MOD_Loop_Tuber_Script.sh
find: illegal option -- t
find: illegal option -- y
[Code]....
View 9 Replies
View Related
Jan 5, 2010
I work as a linux sysadmin, and are now and then developing scripts that might be of use for others. I'd like to be able to share these, and for less trivial projects maybe create a central repository or something that others may upload updates/patches to etc.
View 10 Replies
View Related
Apr 10, 2010
I have a little test program consisting of a NASM source file and a C source file.How do I turn them into a single program?
Code:
section .data
msg db 'Hello, World!', 10
[code]....
View 14 Replies
View Related
Feb 23, 2011
whichever source code I go through I find these three lines of code written what do they actually mean and what is their function?
[code]...
View 6 Replies
View Related
Feb 16, 2011
I want to write a c program with some shell scripts.Now For a simple C program. I am Setting a variable called val2 in bash, now I want to use bash variable val2 in C code. How do I do that?The above doesn't work (coz its spawning a different memory space and when shell script ends the variable dies with it as per my research but how do I keep them in same memory space)Also Is there any Good reference where they teach how to integrate C and Bash Together?
View 5 Replies
View Related
Mar 23, 2011
Can you find an alternative for Code: wc -l using grep?
View 1 Replies
View Related
Mar 28, 2011
Looking for code to add 5 numbers in assembly? I want to use array for input of those 5 numbers. No problem if the output is 1 digit(0....9).
View 3 Replies
View Related
May 17, 2011
I've been converting some C code to assembly for my homework; it was going well but I'm having trouble with a for loop for hours. I could not understand where is the problem and decided to ask. I'm posting the part where I'm having trouble of my C-code and assembly-code; every other part of codes act same and the variable values are same. I'm waiting this two codes to act same, but they don't.
Code:
mov ebx, [result]
mov eax, [i]
mov ecx, [ebx+eax]
mov [j], ecx
mov [ebx+eax], byte '.'
_loop:
mov ebx, [result]
mov eax, [i]
inc eax
mov cl, [ebx+eax]
cmp cl, 'Z'
je _continue
mov ebx,[result]
mov eax,[i]
inc eax
mov ecx, [ebx+eax]
mov [k], ecx
mov ebx, [result]
mov eax, [i]
inc eax
mov ecx, [j]
mov [ebx+eax], ecx
mov ecx, [k]
mov [j], ecx
inc dword [i]
jmp _loop
_continue:
Code:
j=result[i];
result[i]='.';
for(;result[i+1]!='Z';i++){
k=result[i+1];
result[i+1]=j;
j=k;
}
View 10 Replies
View Related
Apr 27, 2010
I was wondering why this code only returns me the same value ten times instead of valuate the conta+0.1 value code...
View 6 Replies
View Related
Jan 2, 2011
i want to run this code
[code]...
i have error in graphics. i have C++ 2005
View 4 Replies
View Related
Apr 15, 2009
I'm trying to call some Fortran 95 code in C, but I'm having problems with integers not having the same value in C as in Fortran, and changing values upon each run of the program. I think it has to do with the integer type, but I don't know how to fix it. I'm running Gentoo x86. Here are the files I've got:
foo.c:
Code:
#include <stdio.h>
extern int qux_();
main() {
[code]....
View 2 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
Jun 12, 2011
I created a dbf file via a code but the file does'nt seems to open.
Quote:
Code is running file and the file emaster.dbf and etran.dbftoo is created in the home directory but it does'nt opens(Libre Office 3 can't open it).
How to open the file.? I want to add information to the database file(Dbf) file. But until it opens how will I achieve my purpose?
View 3 Replies
View Related