Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help! - How do I compile C++ in UNIX Enviroment? Post 22015 by Kahuashi on Monday 27th of May 2002 02:29:33 AM
Old 05-27-2002
Question Help! - How do I compile C++ in UNIX Enviroment?

Smilie Hi, does anyone here know how to compile and run C++ in UNIX environment? I am so desperate! Any help is greatly appreciated. Thanks!
 

10 More Discussions You Might Find Interesting

1. Programming

How to compile and run C++ programs in UNIX environment?

:( :confused: Does anybody here know how to compile and run C++ programs in UNIX enviroment? I am so confused. Any help on this would be greatly appreciated! Thanks! (5 Replies)
Discussion started by: Kahuashi
5 Replies

2. UNIX for Dummies Questions & Answers

how to compile in unix?

i am a new user of unix I saved an executable in fortran source code and now i have to compile this executable ( on unix). And i don't know to do it .what is the command? thank you (2 Replies)
Discussion started by: mono
2 Replies

3. Shell Programming and Scripting

Write and compile Unix exec

Does a unix compiler come standard on Darwin or do you have to DL one. What programing langauge do you write it in... I know on MS-Dos its a bash file that just uses dos commands, but I keep hearing C in this forum. how would I write and compile code for unix? just cat a new file, use unix... (0 Replies)
Discussion started by: Mars8082686
0 Replies

4. Programming

Solaris C Compiler for Unix Enviroment ?

Hello! Can somebody tell my where to find Solaris C compiler for Unix environment? Is it available anywhere on the net for free download ? Thank you for your help! :( (3 Replies)
Discussion started by: krasy
3 Replies

5. UNIX for Dummies Questions & Answers

Unable to compile the c programme in unix

Hi, My name is vreddy and I am learning c language now and written one programme on vi editor. how do I compile the programme please give me some advice and that would be helpfull for me. thanks vre (10 Replies)
Discussion started by: vasudeva
10 Replies

6. Programming

compile java with GUI on unix system/putty

is it possible in the first place? if so, how should I go about it? (0 Replies)
Discussion started by: finalight
0 Replies

7. UNIX for Dummies Questions & Answers

compile .exe, run in unix.

Hi all, I am using putty to access my school unix servers. I have recently downloaded a source file of a software in .tar format. I change the code of the program and compile it in VS8 and build an .exe file. 1) I copy the .exe file to my school account but I could not make it work. How... (2 Replies)
Discussion started by: hkullana
2 Replies

8. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

9. UNIX for Dummies Questions & Answers

can i get UNIX kernel and compile it like Linux ?

I am not a newbie to Linux, i have been using Linux as my desktop for 4 years, but i am just an end user to Linux, no advanced knowledge to it. I knew that, i can download generic linux kernel and compile it by myself, but how about Unix? how can i get an Unix kernel and compile it ? or no this... (5 Replies)
Discussion started by: wong.sie.ung
5 Replies

10. UNIX for Dummies Questions & Answers

How to compile and run java in UNIX?

Hi Im using MobaXterm Unix on my windows XP.I want to compile java in unix.I have installed java to the following path C:\Program Files\Java\jdk1.7.0_09\bin In order to compile the java prog im typing the following command after entering into the bin directory: C:\Program... (2 Replies)
Discussion started by: ak3141
2 Replies
basename(3)						     Library Functions Manual						       basename(3)

NAME
basename, dirname, dirname_r - Return the base filename or directory portion of a pathname LIBRARY
Standard C Library (libc) SYNOPSIS
#include <libgen.h> char *basename( char *path); char *dirname( char *path); The following function is supported only for backward compatibility: #include <string.h> int dirname_r( char *path, char *buf, int size); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: basename(), dirname(): XSH4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
The string from which the base pathname or the directory portion is to be extracted. [Tru64 UNIX] Specifies a working buffer to hold the directory name component. [Tru64 UNIX] Specifies the length of buf. DESCRIPTION
The basename() and dirname() functions complement each other. The basename() function reads path and returns a pointer to the final compo- nent of the pathname, deleting any trailing / (slash) characters. If the string consists entirely of the / (slash) character, basename() returns a pointer to the string / (slash). If path is a null pointer or points to an empty string, basename() returns a pointer to the string . (period). [Tru64 UNIX] In applications that are compiled in an environment that excludes the _XOPEN_SOURCE_EXTENDED standard definitions, the base- name() function returns an empty string if the string consists entirely of the / (slash) character. If path is a null pointer, basename() returns a core dump. If path points to an empty string, basename() returns an empty string. The dirname() function reads path and returns a pointer to a new string that is a pathname of the parent directory of that file. Trailing / (slash) characters in the path are not counted as part of the path. If there is no / (slash), if path is a null pointer, or if path points to an empty string, the dirname() function returns a pointer to the string . (period). [Tru64 UNIX] In applications that are compiled in an environment that excludes the _XOPEN_SOURCE_EXTENDED standard definitions, the dirname() function returns a NULL if there is no / (slash), and a core dump if path is a null pointer, or if path points to an empty string. The dirname_r() function is the reentrant version of the dirname() function. It is supported only to maintain backward compatibility with versions of the operating system prior to DIGITAL UNIX Version 4.0. NOTES
The value returned by the basename() and dirname() functions is a pointer to a thread-specific buffer whose contents will be overwritten on subsequent calls from the same thread. [Tru64 UNIX] The basename(), dirname(), and dirname_r() functions belong to a small set of libc functions that are handled differently when compiled in the X/Open UNIX environment. In the X/Open UNIX environment, calls to these functions are internally renamed by prepend- ing _E to the function name. The renaming is done only when there is an incompatible conflict between an existing version of the function and the version that conforms to the X/Open UNIX standard. The renaming strategy supports binary compatibility by allowing applications to compile in the X/Open UNIX environment and also link with site-specific and third-party libraries that use the old versions of the same libc interfaces. However, internal renaming of the calls affects how these calls are identified during debugging sessions. Therefore, when you are debugging a module that includes the basename() and/or dirname() or dirname_r() functions and for which _XOPEN_SOURCE_EXTENDED has been defined, use _Ebasename to refer to the basename() call and _Edirname to refer to the dirname call and _Edirname_r to refer to the dirname_r call. See standards(5) for information on when the _XOPEN_SOURCE_EXTENDED macro is defined. RETURN VALUES
Upon success, the basename() and dirname() functions return the component string. Upon failure, these functions return NULL. If there is no / (slash), the dirname() function returns a . (period). [Tru64 UNIX] In applications that are compiled in an environment that excludes the _XOPEN_SOURCE_EXTENDED standard definitions, the dirname() function returns NULL if there is no / (slash). [Tru64 UNIX] Upon successful completion, the dirname_r() function returns a value of 0 (zero) and places the directory name component in the buffer pointed at by buf. Upon failure (for example, if there is no / (slash)), the dirname_r() function returns -1 and sets errno. ERRORS
If the dirname_r() function fails, errno may be set to the following: The value of the buf parameter is invalid or too small. RELATED INFORMATION
Commands: basename(1) Standards: standards(5) delim off basename(3)
All times are GMT -4. The time now is 03:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy