Programming :: Multiple Definition Of 'variable_name'

Nov 3, 2010

I have the following header file in /usr/include/test.h:

Code:
#ifndef TEST_H
#define TEST_H
const int test_version = 1;
#endif

[Code].....

View 3 Replies


ADVERTISEMENT

General :: Using Makefile - 'Multiple Definition' Compile Errors

Mar 1, 2011

As part of an assignment, our class was given a small set of c++ classes which are compiled using a makefile. As part of the assignment, I have created a namespace and saved in it a .cpp file. The functions, constants and typedefs from the namespace are now used in one of the original files, and so I added an <#include MyFile.cpp> to the file I modified, in addition to a using MyNamespace;

When I try to use the original makefile, the compiler gives a lot of errors about multiple definitions of every function in the namespace. What do I need to do to resolve this? Do I need to change the makefile or one of the files themselves? I am new to Linux programming and makesfiles.

View 2 Replies View Related

Programming :: Is GPL Applicable To HDL (Hardware Definition Languages)?

Oct 15, 2010

I have recently graduated from uni and during my time there I have developed an interest in HDL, specifically Verilog. As my current job doesn't lend itself to doing anything in verilog so I decided to keep myself sharp by designing a 32 bit processor that is similar to (but not the same as) the MIPS processor it will certainly be RISC. While starting work on it I have decided to start a blog detailing what I have done including the source file as I am entering my work into the wide world I think it needs a licence but I am not looking to make any money or even to derive any fame from what I'm doing. Like I said the main reason to do it is to keep me active in using HDLs.

I hope to gain from the blog suggestions for alternative(better) ways to do what I am doing, for people to use what I have done as an example of a medium sized project in verilog and to force me to have some form of documentation on my project. That's enough self publication to the question. Is the GPL (either version 2 or 3) applicable to work in HDL as it is not a traditional programming language but shares many of the same features? It certainly does not feel like I should use a CC license. I'm not sure this is the correct forum for this question but it seems most applicable.

View 5 Replies View Related

Programming :: Access A Function's Definition In "vim"?

Jun 23, 2010

I'm using ubuntu 9.04;Is there a complete library for C++ programming in ubuntu like "MSDN"?!hen using "Vim", I want to access a function's complete definition such as it's header file, library description and parameters, etc.Is it necessary to install something from repository to obtain such a documentation? And what would be the command to access a function's description in "vim"?

View 1 Replies View Related

Programming :: Programming To Multiple Video Cards

Jun 24, 2009

I've browsed the internet, but haven't found a satisfying answer. Hope this forum can help me in the right direction.I'm exploring the possibilities of creating a program that manipulates (writes to) two different video cards.I program in C and hope to avoid high level libraries like Xlib to keep the mem footprint as low and the performance as high as possible. Windowing is not important no desktop environment will be used. Be able to write two pixels (one to each screen) to would do.

How would I go about?To give an idea of the solution I'm looking for:One screen will show thumbnails of images on the hard drive. Clicking an thumbnail on display A will show the selection full screen on display B. On a laptop; preferably thumbnails on the laptop screen and the selected image on the external monitor.Is this possible with just low-level libs or do I need X or some third-party software to make life easy?

View 14 Replies View Related

Fedora :: Can't Find Rpm Or Yum Definition For Odvr

Mar 25, 2009

I have an Olympus VN 4100PC voice recorder. It does not work with linux. I found odvr, but the instructions on how to use it are rather general. I haven't found an rpm or a yum definition for odvr, so I'm compiling it from source. how to use it though.

View 8 Replies View Related

Ubuntu :: Definition : What Is A Variable File?

Nov 15, 2010

what is a variable file?

View 2 Replies View Related

Networking :: What Is The Exact Definition Of Gateway

Mar 25, 2010

I see the term used all over the place of course, just wondering *exactly* what it's used to describe....? Is it just the next hop on your ISP's internet connection?

View 1 Replies View Related

General :: Automate A Definition Process?

May 24, 2011

I would like to automate a definition process. I have 11,581 to define. :|

I would like to read each word, copy the definition(s) and append it next or below the word or save definitions to file.

The word list has one word per line.

Python script?
Bash?
Perl?

Its an interesting project but I cant seem to figure it out. Lack of programming skills.

View 2 Replies View Related

Ubuntu Multimedia :: Playing High Definition Videos?

May 27, 2011

I am having hard time playing a high definition video file (.mp4), the video initially plays fine, but after 5 mins, it starts to skip and stutter, (I use Movie Player with some codes that Ubuntu installed when I first tried to play file) I have a Dell XPS M1330 Intel Core Duo @2.20 GHz with 4 GB RAM.

View 4 Replies View Related

Software :: Convert A TextPad Syntax Definition To Gedit?

Jun 25, 2010

There is anyone here that can say if there is an application that could convert a TextPad Syntax Highlighting File(*.syn) to Gedit one(*.xml), or anyone here that is interested to convert this?

Here is the file that I want to be converted: ARM Assembly

View 3 Replies View Related

Debian Hardware :: Can't Get Mic To Work - NVidia High Definition Audio

Jul 17, 2011

I'm having trouble getting my microphone to work. Here is my sound card:

:~$ lspci | grep Audio
00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)

I've installed pulseaudio but I still cannot get any sound through the mic.

View 1 Replies View Related

Ubuntu Multimedia :: Get A Studder From Flash When Put A Video On - Even If High Definition Or Not

Feb 25, 2010

I am like almost everyone, watching videos on ..... and I am having problems with flash. When I put a video on - even if high definition or not I still get a studder from flash. The video plays but it keeps chopping up and you can see on some frames how the next frame moves on the bottom of the screen and the previous frame is still stuck on the top. Flash does not run smoothly at all - that is on every video. I am suppose to be on the latest flash version for linux off of addobe.

View 4 Replies View Related

Hardware :: Definition Of A Term In The Context Of Optical Disc Authoring

Nov 5, 2010

I have run a CD/DVD burner program (cdrecord) on a blank DVD and I got the following message.

Code:

WARNING: Phys disk size 1823462 differs from rzone size 0! Prerecorded disk?
WARNING: Phis start: 196608 Phys end: 2020099

What can the program be referring to with "prerecorded disk"?

View 2 Replies View Related

Slackware :: VSFTPD User Versus Login Shell Definition

Jul 18, 2011

I'm using VSFTPD on my office LAN for one simple task: to receive-and send - installation images created with Ghost4Linux. Until recently, my main LAN server ran on CentOS, but I decided to migrate it to Slackware (nicer release policy ).

What I usually do is create an 'install' user who can login to FTP, but not on the system. Here's an example of what I used to do on my CentOS setup:

Code:

# mkdir -p -m 0700 /home/ftp/install
# groupadd install
# useradd -d /home/ftp/install -g install -s /sbin/nologin install
# chown -R install:install /home/ftp/install
# passwd install

The relevant bits in vsftpd.conf looked like this on the CentOS server:

Code:

...
anonymous_enable=NO
...
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/user_list
...

Then I only had to create the /etc/vsftpd/user_list file and put a single line in it to allow the newly created user:

Code:

install Now I've tried to get the same behaviour on Slackware, and I succeeded more or less, except for one thing. There's no way my 'install' user can login to FTP when his default shell is set to '/sbin/nologin' (or '/bin/false'). Only when I change the 'install' users' default shell to a "real" shell like '/bin/bash', he's able to login.

Here's a little practical demonstration of what's happening:

Code:

$ lftp localhost
lftp localhost:~> user install
Mot de passe :

[code]...

View 1 Replies View Related

CentOS 5 Hardware :: Intel High Definition Audio On Shuttle X50

Apr 20, 2010

I'm on 5.4 with a Shuttle X50 and am having a lot of trouble getting sound working on this box. In Gnome the card is detected properly and nothing is muted, but no sound comes out of the speakers when I do the test. Checked in the bios and the audio is enabled so I'm stumped... heres some info for reference:

[Code]...

View 3 Replies View Related

General :: Symantec AntiVirus Update Will Not Download Virus Definition Files?

Jan 27, 2010

can't seem to get my Linux AntiVirus Live update to download virus defs from my Windows Symantec Update Server?Windows workstations can update and download without a problem?When I run LiveUpdate from the side it errors out with "an error has occurred (code=-2,001)" Also, I'm not sure where the Linux defs are to be placed on my windows side for download from my linux workstations? I've found a couple good articles but everything I've tried hasn't fixed my problem? If I download the virus defs locally to each linux box I can update the virus defs without a problem, not a good option when I have several Linux boxes.

View 1 Replies View Related

Software :: Autogen.sh Errors With New OO Fork - Warning: Underquoted Definition Of AM_PATH_NSPR

May 4, 2010

if this is log spam or significant stuff, and what I should do about it? I grabbed the latest build of [URL] the new fork of OO (git download) and ran ./autogen.sh

bash-3.1$ ./autogen.sh
/usr/share/aclocal/nspr.m4:8: warning: underquoted definition of AM_PATH_NSPR
/usr/share/aclocal/nspr.m4:8: run info '(automake)Extending aclocal'
/usr/share/aclocal/nspr.m4:8: or see http://sources.redhat.com/automake/a...ending-aclocal
configure.in:13: installing `./install-sh'
configure.in:13: installing `./missing'

I then get a string of poor guesses, of which I enclose a few

bin/piece/Makefile.am:1: wildcard inst-*: non-POSIX variable name
bin/piece/Makefile.am:1: (probably a GNU make extension)
bin/piece/Makefile.am:1: wildcard post-inst-*: non-POSIX variable name
bin/piece/Makefile.am:1: (probably a GNU make extension)
desktop/16x16/Makefile.am:1: wildcard ooo-*.png: non-POSIX variable name
desktop/16x16/Makefile.am:1: (probably a GNU make extension)

It leaves little confidence that I am getting a good setup. My distro is slamd64-12.2 (An excellent first attempt) I did check the redhat page, but it may have as well been in Fortran or Perl.

View 2 Replies View Related

CentOS 5 Hardware :: Sound Card - 5 / 3400 Series Chipset High Definition Audio

Oct 30, 2010

It always fails when I try the sound card test. It says like the system cant detect the sound card.
Sound Card: 5 series / 3400 series chipset high definition audio
Module: snd-hda-intel

After searching about the issue, I found the information that installing kmod-alsa-PAE-1.0.20-1.el5.elrepo.i686.rpm and kmod-alsa-1.0.20-1.el5.elrepo.i686 would solve the problem.
But even I downloaded and installed them, nothing changed.

== BEGIN uname -rmi ==
2.6.18-194.17.1.el5PAE i686 i386
== END uname -rmi ==

== BEGIN rpm -q centos-release ==
centos-release-5-5.el5.centos
== END rpm -q centos-release ==

== BEGIN ls /etc/yum.repos.d ==
CentOS-Base.repo
CentOS-Media.repo
elrepo.repo
epel.repo
epel-testing.repo
mirrors-rpmforge
rpmforge.repo
rpmfusion-free-updates.repo
rpmfusion-free-updates-testing.repo
rpmfusion-nonfree-updates.repo
rpmfusion-nonfree-updates-testing.repo
== END ls /etc/yum.repos.d ==

== BEGIN lspci ==
~
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
~
== END lspci ==

== BEGIN lspci -n ==
~
00:1b.0 0403: 8086:3b56 (rev 05)
~
== END lspci -n ==

View 13 Replies View Related

Programming :: Getting A Script To Be Run On Multiple Files?

Apr 17, 2009

I use a mencoder line to convert .avi to .mpg (dvd player compatible), it works well but i can only do one file at the time. It requires giving the input and output directories and the files name. I tried using (*.avi *.mpg in the command) on the directory but it just add up all the .avi and convert them into one huge .mpg. My goal is to have a script that would convert all the .avi files from a directory to the same amount of .mpg and also keep the naming of those files. Here is what i work with on single files:

Code:

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:480,harddup
-srate 48000 -af lavcresample=48000
-lavcopts

[code]....

View 3 Replies View Related

Programming :: Usually Make Multiple Dir Using -p Option?

Apr 21, 2010

(i) I usually make multiple dir using -p optionex: mkdir -p dicttest/audrep/tdriver/testNow after creating this dir's i stay in current dir instead i want to go directly to test dir how can i acheive this.(ii) When i execute which command as followswhich testerm i will get the location of testterm now i want to open this filewhen i did in this wayhich testterm | vi The file dosent get opened how can i acheive this ?ex:

linuxx86:110$ which testterm
/view/rdl110_linuxx86/vobs_usrrdl/sc/testterm
linuxx86:110$ which testterm| vi

[code]....

View 3 Replies View Related

Programming :: Redirect To Multiple Files?

Nov 12, 2010

I feel kind of embarrassed posting here, but this is technically a scripting sub-forum. Here is the problem. I have a folder with various files which include .txt files as well

How can i redirect same content to each of the .txt files in the folder?

I have tried
Code: $ echo "hello" > *.txt
-bash: !": event not found Code: also cat ~/otherdir/test.txt > *.txt
-bash: *.txt: ambiguous redirect Can anyone help me with this?Ok i solved it
Code: #! /bin/bash
for file in *.txt
do
echo "Text that needs to be written" > $file
done

View 2 Replies View Related

Programming :: AWK - Combining Multiple Columns?

Feb 23, 2010

I have a folder with only 24 files named <number>.dat (i.e. 4.dat, 6.dat and so on) where <number> is between 0 and 256. Each file has just two columns of data and nothing else.

I'm trying to combine all the second columns ($2) together. I've been fiddling around with getline and so far have

awk '{ getline ln < "6.dat" ; print ln" "$2 }' 4.dat

which takes file 4.dat and adds $2 from 6.dat, but I want a single command to take each $2 from every file and add them to (for example) 4.dat (having $1 from 4.dat is no problem). A command that takes every file in the folder and grabs $2 and places them in a common file would be ideal. Frankly I can work around if you combine both columns from every file.

View 5 Replies View Related

Programming :: Write A .sh Script That Allows To Run Multiple Other

Jan 30, 2010

I'm trying to write a .sh script that allows me to run multiple other .sh scripts at once.

My problem occurs within a Variable:

I have set

S1 to S7 to be the name of the .sh

A="7"
B="S$A"
C="$S$A" <- and this is where my problem is

I want C to be the content of S7 till S1 but if I run this line it will of course look for the content of S and link it with the content of A.

How can I correct this?

Edit:

WHERE="/home/X/Y/"
SH=".sh";
A="7";
B="S$A";
C="$B";

[Code].....

View 6 Replies View Related

Programming :: Run Multiple Instances Of A Jar Executable?

May 5, 2009

It is possible to run multiple instances of a jar executable. Is it possible that only a single instance of the jar runs? Wrappers like JSmooth or Launch4J can be made to run as a single instance. But since there are no such wrappers for linux, I need a way to restrict the jar to a single instance. How to embed the jar file into an executable such it runs a single instance?

View 14 Replies View Related

Programming :: Grep Multiple Files ?

Dec 30, 2010

I want grep multiple files:

let abc.1.abc.2,abc.3,abc.4

I use grep <pattern> abc.* to read the files. But here grep read files in the order of 1,2,3,4 . I want to to grep the files in reverse order like 1st the abc.4 file will be read and abc.1 file will be last.

Is this possible ?

View 3 Replies View Related

Programming :: Multiple Command In Ssh Not Working?

Apr 22, 2011

I have prepared a script which will login to each server and search for a keyword.
I want output on same machine from where m running script.

When i try to run command on any machine.. It works well.

w=$(grep -irH "keyword.com" /home/*/public_html/*);if [ $? -eq 0 ];then echo -e "
$HOSTNAME";echo $(grep -irH "keyword.com" /home/*/public_html/* | cut -d: -f1 | uniq | awk '{for (i=1;i<=NF;i++) printf "%s
",$i}');fi

[Code]....

View 9 Replies View Related

Programming :: Multiple Files To Compile By G++?

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

Programming :: Multiple Runs With The Same Login, C++?

Aug 3, 2010

I am trying to implement a corba program (client) to retrieve customerinformation from the server. Since the server allow to login once andperform your operations until the lifetime experies, i want the client to use already login connection to perform the retrieve function withoutlogin in to the server for every request.Suppose retrieve has three functions, logon(), perform() and logoff()Pseudo code;Quote:

1. User runs a client application
./retrieve <URI> <customerID>
2. if the client program has already login, donot login, go to 4

[code]....

View 3 Replies View Related

Programming :: Multiple Threads In Socket C++?

Nov 26, 2010

Code:
void* thread(void* arg)
{

[code]....

View 5 Replies View Related







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