Skip to content

Code not compilable #7

Description

@raiken-mf

Using the mingw32-make Version GNU Make 3.82.90

gcc -o account_add account_add.o -L src/mysql/lib -llibmysql md5.o
cp account_add.exe ./install/login
process_begin: CreateProcess(NULL, cp account_add.exe ./install/login, ...) failed.
make (e=2): The system cannot find the file specified.
makefile:33: recipe for target 'account_add' failed
mingw32-make: *** [account_add] Error 2

When removing account_add from makefile:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions