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
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
__gnu_profile::__trace_vector_to_list
__gnu_profile::__trace_vector_to_list(3cxx) __gnu_profile::__trace_vector_to_list(3cxx)
NAME
__gnu_profile::__trace_vector_to_list -
SYNOPSIS
Inherits __gnu_profile::__trace_base< __vector2list_info, __vector2list_stack_info >.
Public Member Functions
void __add_object (__object_t object, __vector2list_info__info)
void __collect_warnings (__warning_vector_t &__warnings)
void __destruct (const void *__obj)
__vector2list_info * __find (const void *__obj)
__vector2list_info * __get_object_info (__object_t __object)
void __insert (__object_t __obj, __stack_t __stack)
void __invalid_operator (const void *__obj)
float __list_cost (std::size_t __shift, std::size_t __iterate, std::size_t __resize)
void __opr_find (const void *__obj, std::size_t __size)
void __opr_insert (const void *__obj, std::size_t __pos, std::size_t __num)
void __opr_iterate (const void *__obj, std::size_t __num)
void __resize (const void *__obj, std::size_t __from, std::size_t __to)
void __retire_object (__object_t __object)
float __vector_cost (std::size_t __shift, std::size_t __iterate, std::size_t __resize)
void __write (FILE *__f)
Protected Attributes
const char * __id
Detailed Description
Vector-to-list instrumentation producer.
Definition at line 158 of file profiler_vector_to_list.h.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Nov 27 2012 __gnu_profile::__trace_vector_to_list(3cxx)