Sponsored Content
Top Forums Programming Program in linux for all unix os Post 9072 by lmnt22 on Monday 22nd of October 2001 03:00:53 PM
Old 10-22-2001
Program in linux for all unix os

Hello there,

I have the following mission for my internship:

- Take an existing program which uses OpenGL writen in Delphi, for Windows.
- Write this program in C++ for all operating systems from which the name end on a "X"

So, what kind of features does this program need.

- There has to be a windows like GUI
- I have to use OpenGL in the program

I have linux as OS. I am not a linux expert or something and I don't intend to become one. I don't think this is needed for my "mission", but I have already encountered some problems which could be the result of my "little linux knowledge". Someone told me there is wxwindows, a library which contains all kind of classes to create a nice looking GUI application and which already has OpenGL "support". I installed these libray's exacly following the instrucions and I have read all f*****g manuals, but it won't compile. I use the newest gcc, there are included some sample programs which should be compiled imediately using a makefile, but it doesn't work. I get the error message that I have to set some vars and other s**t. I realy don't get it. Even when I only include only the main header file (wx.h) it still gives the same errors.

Enough about wxwindows. The reason why I wrote this tread is that I am looking for some help on my project. Does anyone happen to know some common errors with installing such library's. Or maybe someone can tell me if I should use some other library's. I am at the beginning of my project so im am lokking for some possibility's to reach the goal of the internship as writen above. I realy need some help, I have read documentation and manuals for some days now, but none are explaining the things I want.

If you have some questions don't hasitate mailing me at lmnt22@chello.nl .

Greeting Stijn and thx in advance

PS Sorry for my bad english.Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where can i find staroffice or any other kind office program for unix or linux?

No detail:confused: (4 Replies)
Discussion started by: HOUSCOUS
4 Replies

2. What is on Your Mind?

I'm writing a new Linux program!

Yep, that's right. I'm writing a Linux binary that requires an X11 Server. It will also be released in a Shell, Win32, and Cocoa (Mac OS X). It's a program that's a text editor and more. It not just creates TXT and RTF files, it also can save in XML, RSS, and a whole lot of other formats. ... (11 Replies)
Discussion started by: Danny_10
11 Replies

3. Programming

C program in Unix / Linux - Time differences

Hi Friends, When Iam running c program in redhat linux 7.3 version and PCQ Linux 8.0 version, its taking around 20 seconds. But when Iam running it in HP-UX Release 11i, its taking around 3 minutes. Can anyone throw light on this. Thanks in advance, Praveen. (11 Replies)
Discussion started by: chprvkmr
11 Replies

4. Windows & DOS: Issues & Discussions

XP as a program on Unix/Linux system?

I am sure this question has been asked and answered before, also, if it is the wrong catergory, please let me know. I would like to know how, if possible to run Unix/Linux as my operating system, and then load XP as a program? (I am open to other operating systems, but it has to be able to... (3 Replies)
Discussion started by: mountainwolf
3 Replies

5. Shell Programming and Scripting

can anybody help me with this linux program??

Program1: 1.Fork a child program. 2.Set itself to ignore SIGINT. 3.If it recieves both SIGUSR1 and SIGUSR2, it should then revert to the default behaviour when receiving a SIGINT. 4. If it recieves SIGALRM, reset itself to ignore SIGINT. The child should: 1.Sleep for 60... (2 Replies)
Discussion started by: tarunbug
2 Replies

6. UNIX for Advanced & Expert Users

Need a linux flight program

I am building a UAV and building a computer control system. I am wanting to use a small linux disro (puppy, damn small) so that i need no drives except sd card reader. I am wondering if anyone knew of a flight control program or something that can be motified to work. The basics are that i am gonna... (0 Replies)
Discussion started by: linux2flight
0 Replies

7. Programming

Please give me some advise to program for unix/linux using c/c++?

I have a good foundation of c++.I want to learn to program for linux/unix,can you give me some advises,for example classic books ,which operating system is used better(freebsd,solaris,federal linux.etc),and which aspects uses mostly in job.Can you give me clear direction for working or learning. (1 Reply)
Discussion started by: fengshuiyue
1 Replies

8. UNIX for Dummies Questions & Answers

Making a program compiled on Unix (HPUX) work on Linux

I am trying to make an application which works on unix to work on linux. I already tried copying the binary files and start it up but I am getting an error stating "Cannot execute binary file". Then I tried to recompile but i am getting an error whenever I tried to recompile. I am getting the... (1 Reply)
Discussion started by: khestoi
1 Replies

9. UNIX and Linux Applications

Linux program

Hi AllPlease send me source code for following if u have......... Write a code that to Demonize a Service (take any service of your choice) to be Invoked by Superserver. All replies are expected to be directed to the flat file (select any specific path you want). Thanks,Nisha Vaghela (2 Replies)
Discussion started by: nisha_vaghela
2 Replies

10. Programming

compiling old C program in Linux.

Hello, I am writing to ask for support about compiling an very old but famous C-progam for genetics study called MapMaker/QTL, and the source code is available from MIT: http://www.broadinstitute.org/ftp/distribution/software/mapmaker3/The program was originally designed for systems like SunOS... (1 Reply)
Discussion started by: yifangt
1 Replies
PCRESAMPLE(3)						     Library Functions Manual						     PCRESAMPLE(3)

NAME
PCRE - Perl-compatible regular expressions PCRE SAMPLE PROGRAM
A simple, complete demonstration program, to get you started with using PCRE, is supplied in the file pcredemo.c in the PCRE distribution. A listing of this program is given in the pcredemo documentation. If you do not have a copy of the PCRE distribution, you can save this listing to re-create pcredemo.c. The demonstration program, which uses the original PCRE 8-bit library, compiles the regular expression that is its first argument, and matches it against the subject string in its second argument. No PCRE options are set, and default character tables are used. If matching succeeds, the program outputs the portion of the subject that matched, together with the contents of any captured substrings. If the -g option is given on the command line, the program then goes on to check for further matches of the same regular expression in the same subject string. The logic is a little bit tricky because of the possibility of matching an empty string. Comments in the code explain what is going on. If PCRE is installed in the standard include and library directories for your operating system, you should be able to compile the demon- stration program using this command: gcc -o pcredemo pcredemo.c -lpcre If PCRE is installed elsewhere, you may need to add additional options to the command line. For example, on a Unix-like system that has PCRE installed in /usr/local, you can compile the demonstration program using a command like this: gcc -o pcredemo -I/usr/local/include pcredemo.c -L/usr/local/lib -lpcre In a Windows environment, if you want to statically link the program against a non-dll pcre.a file, you must uncomment the line that defines PCRE_STATIC before including pcre.h, because otherwise the pcre_malloc() and pcre_free() exported functions will be declared __declspec(dllimport), with unwanted results. Once you have compiled and linked the demonstration program, you can run simple tests like this: ./pcredemo 'cat|dog' 'the cat sat on the mat' ./pcredemo -g 'cat|dog' 'the dog sat on the cat' Note that there is a much more comprehensive test program, called pcretest, which supports many more facilities for testing regular expres- sions and both PCRE libraries. The pcredemo program is provided as a simple coding example. If you try to run pcredemo when PCRE is not installed in the standard library directory, you may get an error like this on some operating systems (e.g. Solaris): ld.so.1: a.out: fatal: libpcre.so.0: open failed: No such file or directory This is caused by the way shared library support works on those systems. You need to add -R/usr/local/lib (for example) to the compile command to get round this problem. AUTHOR
Philip Hazel University Computing Service Cambridge CB2 3QH, England. REVISION
Last updated: 10 January 2012 Copyright (c) 1997-2012 University of Cambridge. PCRE 8.30 10 January 2012 PCRESAMPLE(3)
All times are GMT -4. The time now is 05:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy