lilyanatia / trip Goto Github PK
View Code? Open in Web Editor NEWtripcode tools
tripcode tools
[james@arch ~]$ cc --version
cc (GCC) 4.5.1
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[james@arch tmp]$ cc trip.c
trip.c: In function ‘init_lfsr113’:
trip.c:55:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
trip.c:55:3: note: use option -std=c99 or -std=gnu99 to compile your code
trip.c: In function ‘main’:
trip.c:98:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
trip.c:105:11: error: redefinition of ‘i’
trip.c:98:11: note: previous definition of ‘i’ was here
trip.c:105:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
trip.c: In function ‘trip_search’:
trip.c:148:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
[james@arch tmp]$ cc trip.c -std=c99
trip.c: In function ‘init_lfsr113’:
trip.c:50:1: warning: implicit declaration of function ‘seed48’
trip.c:50:27: warning: initialization makes pointer from integer without a cast
trip.c:51:3: warning: implicit declaration of function ‘nrand48’
trip.c: In function ‘main’:
trip.c:76:3: warning: implicit declaration of function ‘getopt’
trip.c:82:17: error: ‘optarg’ undeclared (first use in this function)
trip.c:82:17: note: each undeclared identifier is reported only once for each function it appears in
trip.c:92:6: error: ‘optind’ undeclared (first use in this function)
trip.c:97:3: warning: implicit declaration of function ‘srand48’
trip.c:100:5: warning: implicit declaration of function ‘lrand48’
[james@arch tmp]$ cc trip.c -std=gnu99
/tmp/ccBidljP.o: In function `main':
trip.c:(.text+0x3f1): undefined reference to `pthread_create'
/tmp/ccBidljP.o: In function `trip_search':
trip.c:(.text+0x6a5): undefined reference to `pcre_compile'
trip.c:(.text+0x6e9): undefined reference to `pcre_study'
trip.c:(.text+0x730): undefined reference to `pcre_info'
trip.c:(.text+0x86d): undefined reference to `DES_fcrypt'
trip.c:(.text+0x8a4): undefined reference to `pcre_exec'
collect2: ld returned 1 exit status
trip-std.c has similar errors
edit: added gnu99, trip-std.c note
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.