Software :: Basic_string -> Pop_back() \ Keep Getting Compilation Errors?

May 5, 2011

Compiling with gcc version 4.5.1 and using the c++0x extended library. Trying to use the std::string pop_back and back functionality ( actually porting code from windows). Reading literature that indicates this functionality is supportted in the extended c libraries but I keep getting compilation errors.Code:std::string test;test.pop_back(); <- compiler cannot find this call.Does anybody know if it is supported with the gcc version and extended liraries I am using on linux.

View 1 Replies


ADVERTISEMENT

Programming :: Compilation Errors In C?

Sep 7, 2010

When compiling a C program i get the following errors.How do i modify the code to remove these warning messages?

1) "test.c", line 614: warning #4212-D: mismatch between character pointer
types "unsigned char *" and "char *"
p_data = m_lines[p_text_idx];

[code]....

View 2 Replies View Related

Programming :: Connecting Signals In Anjuta / Gtkmm - Errors During Compilation

May 24, 2010

i got this simple example of a code, its basicly Anjuta Gtkmm empty project. [URL] and trying to connect button signal to a function at line 67, however i receive errors during compilation, and i dont know what's wrong error output [URL]

View 1 Replies View Related

Ubuntu :: Bunch Of C Errors On Program Compilation - Unsupported And Virtually Unknown

Feb 24, 2011

I'm attempting to install a small application called Asymptopia Flashcard System on Xubuntu x64. It's unsupported and virtually unknown, so I don't know many details about it aside from what I can gather from the source files. The first step in the installation directions is to type "make lib_install" as root at the command line. I get this output:

Making libasymptopia.so ... compiling Path.C ... Path.C: In member function �void Path::listdir(char*, std::deque<char*, std::allocator<char*> >*): followed by a bunch of errors like this: Path.C:38: error: �strcmp� was not declared in this scope

all for the file Path.C, all of them complaining about various header files not being declared. I have the latest version of gcc installed, so I'm very confused about what the problem is. This application is at least a few years old...maybe there's something out-of-date about the way it includes the header files?

View 1 Replies View Related

Ubuntu :: Errors - 18 Packets Transmitted, 0 Received, +12 Errors 100% Packet Loss Time 17038ms

Feb 22, 2010

I',m executing ping, but it didn't work, in order to find the mistake in my network I would like to know how to see the errors:

Code:
18 packets transmitted, 0 received, +12 errors, 100% packet loss, time 17038ms, pipe 4 I want to see this +12 errors. Could I do that?

View 2 Replies View Related

Programming :: Valgrind Output Showing Addresses Not Code Against Errors - 2 Errors From 2 Contexts (suppressed: 0 From 0)

Feb 26, 2010

I am running Valgrind on my program. It shows me two errors but mentions only addresses against them and not actual code even on a debug build.

The output is

==23002== Memcheck, a memory error detector.
==23002== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==23002== Using LibVEX rev 1575, a library for dynamic binary translation.

[code]....

View 1 Replies View Related

General :: Yum Vs Self-Compilation / Difference Between These?

Mar 19, 2011

Can anybody please explain me how source code compilation gives more performance than yum?

View 3 Replies View Related

Ubuntu :: Kernel Compilation For 64 Bit?

Mar 31, 2011

Just I compiled Kernel xxx.3.6 in ubuntu in Virtual Machine for 32 bit. However, I wanted to do it for 64 bit, I dont know what parameter is necessary for 64 bit.

View 9 Replies View Related

Debian :: Posix Related During Compilation?

Sep 4, 2011

I am trying to compile splasutis in my debian wheezy. ./configure run well, but during make I get the following error

make --silent all-recursive
Making all in libs
CONF    libjpeg.a

[code]....

View 7 Replies View Related

Fedora :: Compilation Of Vlc Source Code?

Dec 13, 2009

how vlc source code can be compiled?

View 2 Replies View Related

Fedora :: Berkeley Db-4.8.26 Compilation Failed?

Sep 9, 2011

I have downloaded "db-4.8.26" and trying to compile it for MIPS. I am using the following configuration options

dist/configure --host=mips CC=/opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc LD=/opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-ld CFLAGS="-g -O2 -lpthread -D_REENTRANT" LDFLAGS=-Bshareable
but compilation is giving lot of errors for mutex.
./libtool --mode=compile /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -c -I. -I../dist/.. -g -O2 -lpthread -D_REENTRANT ../dist/../mutex/mut_pthread.c

[Code]...

View 1 Replies View Related

Ubuntu Installation :: Run Executables After Compilation ?

Jun 12, 2010

I'm wondering why in order to run executables after compilation i have to type >"./executableName" I want it to type it just like >"executableName" (with no "./")

I don't know if this matters but I'm using tcsh for my shell...

View 2 Replies View Related

Ubuntu :: Compilation Tcl Error / Link With Tcl?

Jun 17, 2010

I am compiling a package which use Tcl and got results as follow:

/usr/bin/ld: cannont find -ltcl8.4
collect2: ld returned 1 exit status

how to link with tcl? which file to link? it is a file like libtcl.a ?

View 1 Replies View Related

SUSE :: Target Change And Re-compilation??

Jan 27, 2010

We have a 32-bit SLES build server and we compile our 32-bit application on top of it. Our target is 32-bit SLES.Now want to change our target to 64-bit SLSE and keep the application 32-bit, do we need change the build server to 64-bit and recompile the application with some flags? OR can we use the 32-bit binaries compiled on 32-bit SLES build server?We use g++ compiler. It would be great if any Linux Guru can give me the steps to be followed.

View 1 Replies View Related

General :: Compilation Of Firestarter-1.0.3.src.rpm For Powrepc?

May 13, 2011

I am working on ubuntu right now and it is quiet easy to install firestarter firewall on ubuntu thru GUI interafce but my requiremnet is to install firewall on target (powerpc 8560 ),so i have to compile firestarter source for target powerpc (montavista linux) and installed it on target. I have downloaded firestarter-1.0.3.tar & .src.rpm file both but not able to compile it for my target which is powerpc (8560).

1.How to compile source code for powerpc ( I have environment created for ppc compilation but do not know how to modify the configure file to change the compiler) because it is compiling firestarter source code with gcc compiler bydefault i. e for host. How can i change the compiler " CC "? 2.What will be the executable created to be installed on target after compilation ? 3.Is the cross compilation for target is possible?

View 3 Replies View Related

General :: Ubuntu 10.4 Freeze During Compilation?

Jul 10, 2010

I'm trying to compile a fortran code (not my own and I don't know fortran well) and have been having some trouble as the compilation starts and then fails as the computer completely freezes (as in press power button freeze). I added 1.5Gb swap memory as the computer only has 1GB and then tracked the memory use as the process happened and it seemed that the swap wasn't even used. The memory usage hit 90% of the 1.Gb and the machine froze again. The compiler is gfortran

View 1 Replies View Related

Software :: How To Monitor Filesystem During Compilation

Jun 14, 2011

I am working for a quite big embedded software product whose dependencies are not very well known. Especially, all public headers are collected to one flat folder and it is very hard to tell who is using what. get some information on the dependencies by monitoring the filesystem during a build. This is basically the same idea than in the commercial Electric Insight tool. I just thought it could be done for free but it seems to be not totally straightforward. The build is based on recursive makeing of the subsystems. What I would like to do would be to monitor the entire source tree (or at least the folder for public headers) and record the files accessed during compilation of each sybsystem (sybsystem "A" uses these, etc...).

I noticed it is easy to implement the monitoring using inotify or pyinotify as I did in my try. This allowed me to find there are lots of files which are not used at all. My problem really is how to convey the subsystem information to an inotify event. Now, I just get to knew which files are accessed but do not know which subsystem needs them. The easy way would be to revert to sequential make but I would like to get ideas how to solve the problem with make -j (parallel jobs). I would like to integrate the dependency data generation to the normal build process.

View 3 Replies View Related

Software :: Mplayer Compilation Fails?

Sep 1, 2010

i'm trying to compile mplayer/mencoder (I need the "fribidi" flag on and my distro's package is shipped with it off.)I am using ubuntu 10.04 on x86_64.during the building process (make) it stops with the following error messages:

subreader.o: In function `sub_fribidi':
subreader.c.text+0x396): undefined reference to `fribidi_set_mirroring'
subreader.c.text+0x39d): undefined reference to `fribidi_set_reorder_nsm'

[code]....

View 2 Replies View Related

Software :: Target Change And Re-compilation?

Jan 27, 2010

We have a 32-bit SLES build server and we compile our 32-bit application on top of it. Our target is 32-bit SLES.

Now, if we want to change our target to 64-bit SLSE and keep the application 32-bit, do we need change the build server to 64-bit and recompile the application with some flags? OR can we use the 32-bit binaries compiled on 32-bit SLES build server?

We use g++ compiler. It would be great if any Linux Guru can give me the steps to be followed.

View 1 Replies View Related

Programming :: C++ Compilation And Attach In Tcl Interpreter?

Mar 25, 2011

i am working with ad hoc network but the problem is not getting any good documentation of how to compile c++ code then how to add the code into Tcl intrepreter and how to work with make file. i want to run my own algorithm using c++ and then want to incorporate it into tcl interpreter and then want to run.

View 2 Replies View Related

Slackware :: 64 - Static Compilation Broken?

Apr 23, 2010

I have a weird bug : segmentation fault appears when executing the 'retq' instruction of my sigalrm callback in static link...It seems it happens only on slackware...Here is a simple test case, compiled in shared -> no problem, static -> crash...Paste the following script in a file named "test-sigalrm-pack2.sh", and execute it: it will generate the C++ source and a simple build/test script.... Just launch the build script (tst-sigalrm-build).

Code:
#!/bin/sh
#test-sigalrm-pack2.sh

[code]....

View 14 Replies View Related

Slackware :: Current And Amarok Compilation?

Feb 27, 2010

tried to compile amarok in slackware current? I get compilation errors with versions 2.3 Beta and 2.2.2. It used to compile fine when my Slackware was in a custom state, (Slackware 13 + kde 4.3.4 + kde dependencies upgraded) but not anymore after syncing it to slackware-current. I also tried alien bob's KDE 4.4 packages but it did not make any difference at all.Any Hints? I get the feeling it has to do with the new development packages (gcc-4.4.4, etc) but I'm not sure.

View 5 Replies View Related

CentOS 5 :: Php Source File Compilation?

May 25, 2011

Can anybody share a link or steps for Php 5.3.3 and Apache 2.2.19 source file compilation

View 3 Replies View Related

CentOS 5 :: Compilation Of Gobject-introspection

Sep 21, 2011

I am trying to compile gobject-introspection-0.6.2in centOS 5.6 [Linux localhost.localdomain 2.6.39-4.el5.elrepo #1 SMP PREEMPT Thu Aug 4 19:58:19 EDT 2011 i686 i686 i386 GNU/Linux]. When i run ./configure it checks for all dependencies and run successfully but when i run i got a error <gio/gio.h> not found. but in fact i have set the GIO_UNIX_CFLAGS in the ./configure options. The configure command is ->

./configure GIO_UNIX_CFLAGS="-I/usr/local/glib/include/gio-unix-2.0
-I/gio/usr/local/glib/include/glib-2.0
-I/usr/local/glib/lib/glib-2.0/include"[code]....

By observing the make errors, its obvious that <gio/gio.h> is not found which is in the directory /usr/local/glib/include/glib-2.0/gio and set through GIO_UNIX_CFLAGS variable.

View 3 Replies View Related

Debian Configuration :: Kernel Compilation Duration

Apr 10, 2011

I have squeeze installed on an AMD machine. i compiled the kernel based on the config file in the /boot.
it was surprisingly much time:

This was the first time using AMD machine, i had experience with some P4 machine to have much shorter kernel compilation time.

The machine:

what do i do in the wrong way? or is it the "feature" of the this old AMD?

View 7 Replies View Related

Fedora Installation :: F11 - VirtualBox And Kernel Compilation

Sep 13, 2009

I'm trying to get a fedora guest running reliable smp under VirtualBox 3.0.6. The VirtualBox manual says "Some Linux distributions, for example Fedora, ship a Linux kernel configured for a timer frequency of 1000Hz. We recommend to recompile the guest kernel and to select a timer frequency of 100Hz." So I tried recompiling the kernel. Being a responsible lad, when it came to setting the kernel specs:

Code:
# Polite request for people who spin their own kernel rpms:
# please modify the "buildid" define in a way that identifies
# that the kernel isn't the stock distribution kernel, for example,
# by setting the define to ".local" or ".bz123456"
#
# % define buildid .local
%define buildid .rim_for_vbox
I've successfully built and installed kernel, headers and firmware:kernel-2.6.30.5-43.rim_for_vbox.fc11.x86_64.rpm
kernel-firmware-2.6.30.5-43.rim_for_vbox.fc11.x86_64.rpm
kernel-headers-2.6.30.5-43.rim_for_vbox.fc11.x86_64.rpm
The system is working fine (well, so far). But trying to install the VirtualBox Guest Additions kernel add-ons still gives me

Please install the build and header files for your current Linux kernel. The current kernel version is 2.6.30.5-43.rim_for_vbox.fc11.x86_64. I'm pretty sure this is because my kernel doesn't match the development packagekernel-devel-2.6.30.5-43.fc11 (x86_64). So the key question is, how on Earth do I create a development package to match the responsibly-renamed kernel?

View 4 Replies View Related

OpenSUSE :: Getting A Weird Compilation Error With Malloc.h?

Aug 3, 2010

I am getting a weird compilation error with malloc.h/usr/include/malloc.h:86: error: expected ')' before '__size'This is what the code looks like inside malloc.hextern void *(*__morecore) __MALLOC_PMT ((ptrdiff_t __size))When I did some googling, it was stating that ptrdiff_t was not defined; but, it is.#define __malloc_ptrdiff_t ptrdiff_t

View 4 Replies View Related

Ubuntu :: Unable To Complete Kernel Compilation

Feb 2, 2010

Here is what I am getting with any kernel I am attempting to compile these days: [URL]

I pasted as much as I could salvage from the terminal.

Details here: [URL]

View 9 Replies View Related

Ubuntu :: Shell Script For Opencv Compilation?

May 30, 2010

I installed Opencv in Lucid.But i dont know how to compile a program (.c/.cpp) by giving additional opencv flags. So i found another method, There is Buildall.sh (given Below) along with the samples in Opencv Source.I copied buildall.sh to my working directory and using it but there is a problem that each time it compile all the source files in the .

But what i need is a "build.sh" file such that it compile only the argument file given from terminal using opencv flags as in buildall.sh. like follows

Code:
sh ./build.sh prog.c
then it will compile prog.c
Code:
sh ./build.sh prog2.cpp
then it will compile prog2.cpp

its for my project .imy entire project using opensource tools and softs only. if possible somone pls explain the shell script in build all.sh

[Code]...

View 5 Replies View Related

Ubuntu :: TCSH - Running Executable After Compilation

Jun 12, 2010

I'm new with linux, and I'm wondering why in order to run executable after compilation I have to type
>"./executableName" I want it to type it just like
>"executableName" (with no "./")
I don't know if this matters but I'm using tcsh for my shell...

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved