Git Product home page Git Product logo

Comments (3)

gatchi avatar gatchi commented on August 23, 2024

That's weird. It's saying it can't find account_add.exe even tho it was just made? Or did gcc silently fail? What does the working directory look like after make is run?

from psonova-server.

raiken-mf avatar raiken-mf commented on August 23, 2024

Sorry for the late response.
Here's a screenshot of the working dir.

I reverted the changes to makefile and tried to compile it again. Same as 1st error message. And yes, account_add.exe was successfully created somehow. Maybe... the size of the exe is 54 kb, it didn't copy the executable to the login dir though. There's still an executable with size 72 kb.

But that's not the important executable.
root

It seems the makefile has not the correct syntax for windows. Maybe if I try to compile it using git bash console.

from psonova-server.

raiken-mf avatar raiken-mf commented on August 23, 2024

Trying to compile it using git bash results into the following:

gcc -o account_add account_add.o -L src/mysql/lib -llibmysql md5.o
cp account_add.exe ./install/login
gcc -c -I src/md5/include -I src/mysql/include -I src/prs src/login_server/login_server.c
src/login_server/login_server.c: In function 'main':
src/login_server/login_server.c:5125:11: error: redeclaration of 'ch' with no linkage
  unsigned ch;
           ^~
src/login_server/login_server.c:5062:11: note: previous declaration of 'ch' was here
  unsigned ch,ch2;
           ^~
src/login_server/login_server.c:5127:8: error: redeclaration of 'fp' with no linkage
  FILE* fp;
        ^~
src/login_server/login_server.c:5073:8: note: previous declaration of 'fp' was here
  FILE* fp;
        ^~
makefile:71: recipe for target 'login_server.o' failed
mingw32-make: *** [login_server.o] Error 1

from psonova-server.

Related Issues (2)

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.