Logo
Explore Help
Register Sign In
lenn/srs
1
0
Fork 0
You've already forked srs
mirror of https://github.com/ossrs/srs.git synced 2025-11-24 03:44:02 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
develop
srs/trunk/research/st/hello.cpp

12 lines
127 B
C++
Raw Permalink Normal View History

ST: Research adds examples that demos pthread and helloworld. v6.0.118 (#3989) 1. `trunk/research/st/exceptions.cpp` About exceptions with ST, works well on linux and mac, not work on cygwin. 2. `trunk/research/st/pthreads.cpp` About pthreads with ST, works well on all platforms. 3. `trunk/research/st/hello.cpp` Hello world, without ST, works well on all platforms. 4. `trunk/research/st/hello-world.cpp` Hello world, with ST, works well on all platforms. 5. `trunk/research/st/hello-st.cpp` A very simple version for hello world with ST, works well on all platforms.
2024-03-24 09:28:46 +08:00
/*
g++ hello.cpp -g -O0 -o hello && ./hello
*/
void foo() {
}
int main(int argc, char** argv) {
foo();
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 3299ms Template: 197ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API