Programming :: Can't Get The Character That Have Initialized Used Gcc4.5.2 To Compile Program?
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
ADVERTISEMENT
Nov 19, 2008
I'm having a bit of trouble with a regular expression I'm trying to write and I'm not sure if it's something Tcl specific or my lack of regexp understanding.
[Code]...
I get a number of strings passed to a proc in the format 3|x where x is a number, either 0 or within the range 5-12. My understanding is that that regexp will match the literal '3' followed by a '|', the escapes the special meaning of |, and then 0 or, because of |, a number within the range 5-12. However I'm getting the error 'couldn't compile regular expression pattern: invalid character range'.
View 3 Replies
View Related
Jul 27, 2010
i tried a code to accept a character and print the same ! i can accept it with following code but its not working with printing that character i use NASM version 2.07
Code:
segment .data
msg1: db 'Enter a key',10
msg1len: equ $-msg1
[code]....
View 3 Replies
View Related
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
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
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
Feb 26, 2010
I want to capture the ip packets, so i installed
I am getting the following errors.
View 7 Replies
View Related
Nov 15, 2010
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 Related
Jul 8, 2011
I 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]..
View 4 Replies
View Related
Apr 15, 2010
I am using latest GCC version GCC4.4 in my linux. my code snippet:
auto const char *ostr = ((int *)node)->str;
When i compile this, i get an error as follows:
error: auto will change meaning in C++0x;
View 13 Replies
View Related
Dec 28, 2010
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 Related
Apr 3, 2011
I 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]...
View 3 Replies
View Related
May 1, 2011
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
View 8 Replies
View Related
Aug 7, 2010
I'm finalizing the the dual-boot addition that I recently completed. I've added lubuntu to the LT3114u Netbook that I use. That's done, now I'm migrating my user environment back from the Cygwin one that I've been using on Windoze, as of late. One of features that's been useful has been the global environment management possible with the windoze UI functions. As I coded my emacs environment while 'over there' (windoze side), I included a check for the lisp library repository path environment variable EMACSLOADPATH. It is globally available when one logs in, and does not get set in any user scripts, or dot files any to do with CYGWIN or emacs.
While it has been easy enough to set EMACSLOADPATH for the login shell environment, via .bashrc, .profile, and system wide via /etc/profile, I have not been able to have '/usr/bin/emacs23' have EMACSLOADPATH set when invoked via the LXDE UI. Thus, it would appear that emacs is not being initialized with the same environment that any of the shells are (old school?). Thus, what is it that one must update in order to have GNU emacs initialized with the same environment variables as bash? Or, put another way, why aren't the environment variable defined in /etc/profile, ~/.bashrc and/or ~/.profile ending up in the initialized environment upon invocation of emacs23 on lubuntu Linux?
[Code]....
View 3 Replies
View Related
Nov 12, 2010
[URL] On above link a structure is defined
Code:
static const struct {
const char *name;
u32 version; /* from RTL8139C/RTL8139D docs */
u32 flags;
[code]....
I am not clear with what is
1) u32 version
2) How u32 version is initialized to HW_REVID(1, 0, 0, 0, 0, 0, 0)
View 4 Replies
View Related
Jun 29, 2011
I'm implementing exceptions using longjmp() (since C++ exceptions don't offer the features that I need, including resuming and a "finally" block), like this:
Code:
jmp_buf ex_jmpbuf;
void *ex_exception;
bool ex_resumable;
jmp_buf ex_resumebuf;
[code]....
Why are the curly braces being misinterpreted as arrays here, but not anywhere else?
View 11 Replies
View Related
Mar 27, 2010
1.What character instructd the shell to interpret a special character as an ordinary character?
2.What directory contains some of the utilities available on the system in the form of binary files?
3. What command is used to search the location of a utility?
4. What command is used to instruct the editor to write the file and quit the editor?
5. What key quits the more utility and displays the shell prompt?
6. What command starts a child shell as the super user, taking on root's identity and environment?
7. Which wildcard characters can be used for searching all the files in the system that start with "A"?
8. The user name or login name of the super user is????
[Code]....
View 10 Replies
View Related
Oct 7, 2010
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 Related
Jan 20, 2010
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.
View 4 Replies
View Related
Jun 20, 2011
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]....
View 1 Replies
View Related
Jan 4, 2010
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]....
View 9 Replies
View Related
Apr 20, 2011
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 Related
Jul 18, 2011
I followed the steps from the this website [URL]..but after I run: sudo make I got this output:
[Code]...
View 2 Replies
View Related
Dec 9, 2010
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
");
}
View 1 Replies
View Related
Jan 24, 2010
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:
View 9 Replies
View Related
Jul 21, 2011
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
View 2 Replies
View Related
Mar 16, 2011
What are the steps to compile a ns2 program?
View 2 Replies
View Related
Jul 25, 2010
I 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 .....
View 4 Replies
View Related
Jun 27, 2010
I have a string like this "/home/test/filename.txt" and i want to delete all character after the last "/". how to do that using sed or awk.
View 5 Replies
View Related