Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

linux programminh help

Name: Anonymous 2012-09-19 20:34

I have to use linux (Fedora 16/17) at school, and I can compile my program like this:
g++ test.cpp -lSDL -lSDL_image -lSDL_ttf -o test

and If I do:
./test

I get some bash error and permission denied, even if do the su root command. I believe all the libraries are installed, this is what I put into console earlier:
yum install gcc gcc-c++ SDL-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel


Is that's something that I am doing wrong? Also, the thing I don't like about this is unlike windows where I can just have some of the .dll's with the program, I can't seem to do that on linux to make it easier for people to use. Any of you know something that I can do to have the game easily launchable in linux just by clicking it? Thanks

Name: enjoy dynamic scope! 2012-09-19 20:42

Your first problem is that you are using g++.

The second one, do you, in your bash shell, predefined the path your are running ./test?

If not, run:

bash ./test ; echo "You sir, need to read the manual." ;

http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html
http://www.gnu.org/software/bash/manual/

Name: Anonymous 2012-09-19 20:48

1. What is the problem with g++?

2. Well what I do is I open up the console in the current directory.

3. No idea for the libraries thing?

Name: Anonymous 2012-09-19 20:52

/backplate getgoes/

Name: Anonymous 2012-09-19 20:54

>>4
that doesn't make any sense

Name: Anonymous 2012-09-19 21:05

1)
a. http://harmful.cat-v.org/software/OO_programming/
b. http://www.parashift.com/c++-faq-lite/big-picture.html

2) read the manual, then bite your tongue for use bash.
bash `pwd`$(ls | grep test); echo "Shit hasn't even started.";

3) You must be gnew here: http://www.graphicsmagick.org/
Here is a wrapper in Java for ImageMagick:
http://www.imagemagick.org/script/api.php#java

Now do your Homework, high school kid.

Name: Anonymous 2012-09-19 21:15

>>6
...cat-v.org/...
how to lose your credibility: the link

Name: Anonymous 2012-09-19 21:17

>>7
credability
...4chan...
how to lose your trollability: the strawman

Name: Anonymous 2012-09-19 21:53

Name: Anonymous 2012-09-19 21:58

Linux uses .so or something files. I believe it logically does look in the current drive for it before checking the /usr/ folder or whatever, so when you compile the .so just throw it in the directory and I think it works.

Name: Anonymous 2012-09-19 22:07

>>9
Et tu, Brutus?

Name: Anonymous 2012-09-19 22:14

If I do:
bash ./test
I get an error that it cannot execute binary

>>6
I don't think #3 had any correlation with what I was looking for. I was wondering if I can have SDL .dll's in the same folder as the program.

Name: Anonymous 2012-09-19 22:28

>>9
It's not a tu quoque, Wikipedophile, it's a regular ad hominem.

Name: Anonymous 2012-09-19 22:43

>>11
Caesar, ad tyrannos coniuro. Non tuum.

>>13
chmod 744 ./test ; bash ./test ;
If not, look at what group you are, you could have no execute permissions. Or you have a bad bash.

Name: Anonymous 2012-09-19 22:54

well I updated my bash and I try all that but it doesn't work

Name: credibility --{ ref{ ref{ src 2012-09-19 23:20

>>13
How pretentious is it to deem a reference invalid for a reference list of credible sources....

analogy:
The company that makes false penis growing pills, which I learned from a news paper ads. The News paper company must be spreading lies.

Name: Anonymous 2012-09-20 0:58

>>16
The News paper company IS spreading lies.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List