Code Monkey home page Code Monkey logo

kadc's People

Contributors

ajalkane avatar gk7huki avatar tiennou avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

kadc's Issues

kc_hashLog() - unclear pointer arithmetic

KadC/src/hash.c

Line 191 in f0dd586

for( i = 0; i < length; i++, op++ ) {

About the ++op into kc_hashLog() im not sure that is a bug but seems suspicious because in kc_hashLog() the argument kc_hash *op is not an array but a single element see here, and later in the loop the op pointer is deferenced to access to his hash member.

Error occurred during compilation.

Hello!
There are some errors when I compiled Kadc. What shoud I do?

D:\resource\libkadc\KadC> scons
scons: Reading SConscript files ...
Looking for build directory for platform 'win32'
Found directory build\win32, will build there
scons: done reading SConscript files.
scons: Building targets ...
cl -o build\win32\bufio.obj -c /nologo -Wall -pedantic -include kadc.h -m32 -fno-pie -std=gnu99 -D_REENTRANT -D_GNU_SOURCE -Isrc -Iclients src\bufio.c
cl: 命令行 warning D9035 :“o”Option is rejected and will be removed in a future version
cl: 命令行 warning D9002 :ignore unknown options“-pedantic”
cl: 命令行 warning D9002 :ignore unknown options“-include”
cl: 命令行 warning D9002 :ignore unknown options“-m32”
cl: 命令行 warning D9002 :ignore unknown options“-fno-pie”
cl: 命令行 warning D9002 :ignore unknown options“-std=gnu99”
cl: 命令行 warning D9024 :unrecognized source file type“kadc.h”,assume object file
cl: 命令行 warning D9027 :source file“kadc.h”ignored
bufio.c
src\bufio.c(67): error C2079: “getipn”use undefined struct“in_addr”
src\bufio.c(68): error C2065: “in_addr_t”: undeclared identifier
src\bufio.c(68): error C2146: Syntax error: missing ';' (before identifier 'U')
src\bufio.c(68): warning C4555: unused expression results
src\bufio.c(68): error C2065: “u”: undeclared identifier
src\bufio.c(68): warning C4555: unused expression results
src\bufio.c(69): error C2065: “u”: undeclared identifie
src\bufio.c(70): error C2065: “u”: undeclared identifie
src\bufio.c(71): error C2065: “u”: undeclared identifie
src\bufio.c(72): error C2065: “u”: undeclared identifie
src\bufio.c(73): error C2065: “u”: undeclared identifie
src\bufio.c(74): error C2065: “u”: undeclared identifie
src\bufio.c(75): error C2065: “u”: undeclared identifie
src\bufio.c(76): error C2079: 'addr' uses undefined struct 'in'_ addr”
src\bufio.c(77): error C2224: “.s_ The left side of 'addr' must have a struct / union type
src\bufio.c(77): error C2065: “u”: undeclared identifie
src\bufio.c(78): error C2440: "return": cannot convert from "int" to "in_ addr”
src\bufio.c(104): error C2065: “in_addr_t”: undeclared identifie
src\bufio.c(104): error C2146: Syntax error: missing ';' (before identifier 'U')
src\bufio.c(104): warning C4555: unused expression results
src\bufio.c(104): error C2065: “u”: undeclared identifie
src\bufio.c(104): error C2037: “s_ The left part of "addr" specifies the undefined struct / Union "in_ addr”
src\bufio.c(105): error C2065: “u”: undeclared identifie
src\bufio.c(106): error C2065: “u”: undeclared identifie
src\bufio.c(107): error C2065: “u”: undeclared identifie
src\bufio.c(108): error C2065: “u”: undeclared identifie
scons: *** [build\win32\bufio.obj] Error 2
scons: building terminated because of errors.

Thanks!

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.