Sponsored Content
Top Forums Programming How to complie a c++ program in Unix or Cygwin? Post 302111550 by reborg on Wednesday 21st of March 2007 05:00:44 PM
Old 03-21-2007
Quote:
Originally Posted by meili100
How to compile the following "test.cpp" code? It reports "std error"...

#include <vector>
#include<iostream>

int main(){
std:vector <int> a1(10);
a1[0]=12;
std:cout<<a1[0]<<endl;
return 0;
}
You don't have one.

g++ -o test test.cpp
 

10 More Discussions You Might Find Interesting

1. Programming

Help about SCO unix complie problem ?

Can you tell me why ? Thank you ! $ cc -L /usr/lib server.c -lsocket UX:acomp: WARNING: "server.c", line 60: argument is incompatible with prototype6 Undefined first referenced symbol in file ffush server.o... (2 Replies)
Discussion started by: loudingyang
2 Replies

2. Windows & DOS: Issues & Discussions

Basic Unix Commands for cygwin

Hi. I'm New user for this Forum.Presently i'm working with Cygwin I want to know the basic commands that will be used for Cygwin. Can anyone guide me on this regards Thanks & Regards Sanjay (0 Replies)
Discussion started by: sanjay.karthik
0 Replies

3. Shell Programming and Scripting

using alias in cygwin unix

i have a cygwin unix and i would like to use alias to save a cd command.. however i lose this alias when i close out cygwin and log back in.. is there any way to save this command so that i can use it every time i log in? i am using cygwin on windows xp. thanks. (1 Reply)
Discussion started by: npatwardhan
1 Replies

4. UNIX for Dummies Questions & Answers

Unix Emulator Cygwin

Hi, I installed unix emulator cygwin, it does not allow me to open vi editor. Can anybody know if cygwin supports vi. if not can somebody please refer a good emulator. (5 Replies)
Discussion started by: siquadri
5 Replies

5. UNIX for Dummies Questions & Answers

Cygwin not waiting for program in background (solved)

Hello, I know this isn't exactly a Unix question, but I wasn't able to find much information elsewhere. I'm trying to run a program in the background using Cygwin on a Windows machine, then use the wait command to pause before proceeding. Unfortunately, as I've confirmed using ps aux, the... (0 Replies)
Discussion started by: ocdcollector
0 Replies

6. UNIX for Dummies Questions & Answers

Cross complie linux make files onto a windows 7 machine using PGI Cygwin

Hello, I am very unfamiliar with linux/unix (don't even know the difference), but am trying to get some linux software to run on my Windows machine for my research. I have the makefiles for the software, and it is designed to be compiled in the PGI complier, which I also have. When i... (6 Replies)
Discussion started by: roba87
6 Replies

7. UNIX for Dummies Questions & Answers

How can I rebuild applications that developed in UNIX? I need to use it in windows os with cygwin

I need to rebuild an application that developed in unix environment and run in windows OS with cygwin. so How can I rebuild from the source code? is there any one who said something on this regard? (2 Replies)
Discussion started by: bejirond
2 Replies

8. HP-UX

UNIX apps on CYGWIN

Hi all, am new to the forum. i would like to check with the community whether anyone had tried to run self-developed UNIX apps on the CYGWIN? Does the CYGWIN presents a friendly environment to host the UNIX apps? thanks :) (14 Replies)
Discussion started by: lchunleo
14 Replies

9. Shell Programming and Scripting

Execute a shell script in UNIX server from Cygwin

Hi All, We have shell scripts in UNIX ( Sun OS ) server. Also in my windows machine i have Cygwin installed. Now is there a way to execute Shell script available in UNIX server from Cygwin? (4 Replies)
Discussion started by: Girish19
4 Replies

10. Windows & DOS: Issues & Discussions

Cygwin script to transfer file from windows to UNIX

Hi, Objective is to transfer files from windows server to Unix server using cygwin. I have installed cygwin, and I manually execute commands and transfer files from windows to unix using sftp. These are steps I execute 1) Run cmd 2) Run cygwin 3) At prompt type sftp user1@uniserver 4) lcd... (2 Replies)
Discussion started by: wahi80
2 Replies
std::integral_constant< _Tp, __v >(3)			     Library Functions Manual			     std::integral_constant< _Tp, __v >(3)

NAME
std::integral_constant< _Tp, __v > - SYNOPSIS
Inherited by std::__and_<>, std::__is_base_to_derived_ref< _From, _To, false >, std::__is_copy_assignable_impl< _Tp, true >, std::__is_copy_constructible_impl< _Tp, true >, std::__is_destructible_safe< _Tp, false, true >, std::__is_destructible_safe< _Tp, true, false >, std::__is_empty_non_tuple< tuple< _El0, _El...> >, std::__is_fast_hash< _Hash >, std::__is_fast_hash< hash< long double > >, std::__is_fast_hash< hash< string > >, std::__is_fast_hash< hash< u16string > >, std::__is_fast_hash< hash< u32string > >, std::__is_fast_hash< hash< wstring > >, std::__is_floating_point_helper< typename >, std::__is_floating_point_helper< double >, std::__is_floating_point_helper< float >, std::__is_floating_point_helper< long double >, std::__is_integral_helper< typename >, std::__is_integral_helper< bool >, std::__is_integral_helper< char >, std::__is_integral_helper< char16_t >, std::__is_integral_helper< char32_t >, std::__is_integral_helper< int >, std::__is_integral_helper< long >, std::__is_integral_helper< long long >, std::__is_integral_helper< short >, std::__is_integral_helper< signed char >, std::__is_integral_helper< unsigned char >, std::__is_integral_helper< unsigned int >, std::__is_integral_helper< unsigned long >, std::__is_integral_helper< unsigned long long >, std::__is_integral_helper< unsigned short >, std::__is_integral_helper< wchar_t >, std::__is_lvalue_to_rvalue_ref< _From, _To, false >, std::__is_member_function_pointer_helper< typename >, std::__is_member_object_pointer_helper< typename >, std::__is_member_pointer_helper< _Tp >, std::__is_member_pointer_helper< _Tp _Cp::* >, std::__is_move_assignable_impl< _Tp, true >, std::__is_move_constructible_impl< _Tp, true >, std::__is_nothrow_copy_constructible_impl< _Tp, true >, std::__is_nothrow_move_constructible_impl< _Tp, true >, std::__is_nt_copy_assignable_impl< _Tp, true >, std::__is_nt_destructible_safe< _Tp, false, true >, std::__is_nt_destructible_safe< _Tp, true, false >, std::__is_nt_move_assignable_impl< _Tp, true >, std::__is_nullptr_t_helper< typename >, std::__is_nullptr_t_helper< std::nullptr_t >, std::__is_pointer_helper< typename >, std::__is_pointer_helper< _Tp * >, std::__is_signed_helper< _Tp, bool, bool >, std::__is_signed_helper< _Tp, false, true >, std::__is_tuple_like< _Tp >, std::__is_tuple_like_impl< typename >, std::__is_tuple_like_impl< array< _Tp, _Nm > >, std::__is_tuple_like_impl< pair< _T1, _T2 > >, std::__is_tuple_like_impl< tuple< _Tps...> >, std::__is_void_helper< typename >, std::__is_void_helper< void >, std::__or_<>, std::__ratio_less_impl< _R1, _R2, bool, bool >, std::__uses_allocator_helper< _Tp, _Alloc, bool >, std::_AllConvertible< _From, _To, bool >, std::chrono::__is_duration< _Tp >, std::chrono::__is_duration< duration< _Rep, _Period > >, std::chrono::__is_ratio< _Tp >, std::chrono::__is_ratio< ratio< _Num, _Den > >, std::is_array< typename >, std::is_array< _Tp[]>, std::is_array< _Tp[_Size]>, std::is_bind_expression< _Tp >, std::is_bind_expression< _Bind< _Signature > >, std::is_bind_expression< _Bind_result< _Result, _Signature > >, std::is_bind_expression< const _Bind< _Signature > >, std::is_bind_expression< const _Bind_result< _Result, _Signature > >, std::is_bind_expression< const volatile _Bind< _Signature > >, std::is_bind_expression< const volatile _Bind_result< _Result, _Signature > >, std::is_bind_expression< volatile _Bind< _Signature > >, std::is_bind_expression< volatile _Bind_result< _Result, _Signature > >, std::is_const< typename >, std::is_const< _Tp const >, std::is_error_code_enum< _Tp >, std::is_error_code_enum< future_errc >, std::is_error_condition_enum< _Tp >, std::is_error_condition_enum< errc >, std::is_function< typename >, std::is_function< _Res(_ArgTypes...) const >, std::is_function< _Res(_ArgTypes...) const volatile >, std::is_function< _Res(_ArgTypes...) volatile >, std::is_function< _Res(_ArgTypes...)>, std::is_function< _Res(_ArgTypes......) const >, std::is_function< _Res(_ArgTypes......) const volatile >, std::is_function< _Res(_ArgTypes......) volatile >, std::is_function< _Res(_ArgTypes......)>, std::is_lvalue_reference< typename >, std::is_lvalue_reference< _Tp & >, std::is_object< _Tp >, std::is_rvalue_reference< typename >, std::is_rvalue_reference< _Tp && >, std::is_same< typename, typename >, std::is_same< _Tp, _Tp >, std::is_volatile< typename >, std::is_volatile< _Tp volatile >, std::uses_allocator< priority_queue< _Tp, _Sequence, _Compare >, _Alloc >, std::uses_allocator< queue< _Tp, _Seq >, _Alloc >, std::uses_allocator< stack< _Tp, _Seq >, _Alloc >, and std::uses_allocator< tuple< _Types...>, _Alloc >. Public Types typedef integral_constant< _Tp, __v > type" typedef _Tp value_type Public Member Functions constexpr operator value_type () Static Public Attributes static constexpr _Tp value Detailed Description template<typename _Tp, _Tp __v>struct std::integral_constant< _Tp, __v > integral_constant Definition at line 57 of file type_traits. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 std::integral_constant< _Tp, __v >(3)
All times are GMT -4. The time now is 12:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy