Giter VIP home page Giter VIP logo

trip's People

Contributors

lilyanatia avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

aheadley

trip's Issues

trip.c does not compile

[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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.