banuliciraul123 0 Posted January 31, 2023 Share Posted January 31, 2023 (edited) Hi there,i follow tutorial for upgrade GCC : and i have one error compiling game : Edited February 3, 2023 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Contributor Amun 1899 Posted February 3, 2023 Contributor Share Posted February 3, 2023 Most likely because it doesn't exist. Link to comment Share on other sites More sharing options...
banuliciraul123 0 Posted February 3, 2023 Author Share Posted February 3, 2023 (edited) I fixed that,i have this : usr/local/bin/ld -lmysqlclient , and i have these files.. Edited February 4, 2023 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Contributor TMP4 10993 Posted February 3, 2023 Contributor Share Posted February 3, 2023 (edited) 11 hours ago, banuliciraul123 said: I fixed that,i have this : usr/local/bin/ld -lmysqlclient , and i have these files.. By default you have something like this in your MakeFile: ifeq ($(BSD_VERSION), 7) INCDIR += -I../../libmysql/7.x-5.1.35 LIBDIR += -L../../libmysql/7.x-5.1.35 else INCDIR += -I../../libmysql/5.x-5.1.35 LIBDIR += -L../../libmysql/5.x-5.1.35 endif LIBS += -lmysqlclient -lz This means it will lokk for libmysqlclient.a in ../../libmysql/5.x-5.1.35/libmysqlclient.a (the ../ means one folder back, you probably knows it but anyway..) Is the file there? Check your makefile because yours may reads from another location. Also you can link it directly (I prefer that way), for example here's mine: LIBS += ../../etc/libmysql/libmysqlclient.a /usr/lib/libz.a I have that lib in ../../etc/libmysql/libmysqlclient.a Edited February 4, 2023 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now