Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#1 id:12397 Posted Sep 20, 2008, 4:46 am
|
ok so i'm tinkering around with the low4 codebase i downloaded from the repository here and in my makefile it tells me this:
comm.c:169: error: conflicting types for 'gettimeofday'
/usr/include/sys/time.h:73: error: previous declaration of 'gettimeofday' was here
i freely admit i've gotten rusty on the coding front and would appreciate it if somebody could tell me what this means and how to fix it.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
|
|
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#3 id:12400 Posted Sep 20, 2008, 6:34 am
|
thanks, that fixed it. i will most likely be asking a bunch of stupid questions like this one in the future so please bear with me while i relearn the trade.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#4 id:12401 Posted Sep 20, 2008, 6:44 am
|
oh yeah, and before i forget, what do i need to do to get cygwin to recognize the startup command?
[Edit to add something]
yay i got it to compile mostly but right at the end it pops up with act_info.c:3677: undefined reference to "_crypt"
as well as the same in a couple other locations. what would i need to do to correct this? i'm sure it's something simple but i never took any C or C++ classes, taught myself how to code, so any help is appreciated.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
Last edited Sep 20, 2008, 7:05 am by Igabod
|
|
Chris Bailey
Wizard

Group: Members
Posts: 602
Joined: Sep 13, 2008
|
#5 id:12404 Posted Sep 20, 2008, 9:38 am
|
Have you tried adding -lcrypt to your makefile?
|
|
......................... If what Proust says is true, that happiness is the absence of fever, then I will never know happiness. For I am possessed by a fever for knowledge, experience, and creation.
|
|
|
|
Chris Bailey
Wizard

Group: Members
Posts: 602
Joined: Sep 13, 2008
|
#7 id:12406 Posted Sep 20, 2008, 10:15 am
|
Oh yeah I forgot he was using cygwin. Isn't it somehow incapable of using the crypt lib?
|
|
......................... If what Proust says is true, that happiness is the absence of fever, then I will never know happiness. For I am possessed by a fever for knowledge, experience, and creation.
|
|
|
|
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#10 id:12421 Posted Sep 21, 2008, 12:24 am
|
the 3rd line of my makefile is NOCRYPT = (blank here) then the next line is
C_FLAGS = -O -Wall -g -ggdb2 -Dlinux $(PROF) $(NOCRYPT)
most of the things in the makefile are gibberish to me so if it still needs something added to it then i am unsure where to add it. i don't seem to remember having this much trouble years ago when i tried to start a mud up but i guess thats the price you pay for dropping out of the world completely for so long.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
|
|
Chris Bailey
Wizard

Group: Members
Posts: 602
Joined: Sep 13, 2008
|
#11 id:12423 Posted Sep 21, 2008, 12:36 am
|
If you think this is trouble just wait until you actually have to modify something. I think your best bet would be to grab a book on programming in C or C++ and check out some online tutorials. Personally I recommend This book. You might also want to check into a unix guide like this one.
|
|
......................... If what Proust says is true, that happiness is the absence of fever, then I will never know happiness. For I am possessed by a fever for knowledge, experience, and creation.
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#12 id:12425 Posted Sep 21, 2008, 12:42 am
|
i've already made dozens of modifications, i'm able to do that without any problems for the most part, i just haven't been able to translate the makefile before cause i rarely need to alter it. i just need to figure out what this one problem is and i'll be able to fix it if i encounter it again in the future. thats how i learn, i encounter problems, try to figure it out on my own, if i'm unable to then i ask for assistance. when assistance is recieved, i fix the problem and then know it better if i were to read some book. thats just the way my brain works. btw i'm not trying to be a great coder or anything just yet, i'm just doing this for fun, i'm not even going to put this online.
[Edit] by modifications i mean small things, i've made a few new skills and tweaked numbers here and there but nothing major like rewriting the fight system or anything.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
Last edited Sep 21, 2008, 12:46 am by Igabod
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#13 id:12429 Posted Sep 21, 2008, 2:53 am
|
cygwin does have the crypt lib by the way, and i do have it installed but i'm still getting the same message. if somebody could tell me where in the makefile i'm supposed to put -DNOCRYPT or -lcrypt then that would be great. thanks.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
|
|
Chris Bailey
Wizard

Group: Members
Posts: 602
Joined: Sep 13, 2008
|
#14 id:12430 Posted Sep 21, 2008, 2:54 am
|
Pastebin the makefile.
|
|
......................... If what Proust says is true, that happiness is the absence of fever, then I will never know happiness. For I am possessed by a fever for knowledge, experience, and creation.
|
|
Igabod
Wizard


Group: Members
Posts: 1,080
Joined: Jul 23, 2008
|
#15 id:12431 Posted Sep 21, 2008, 2:57 am
|
Code (text): 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 |
CC = gcc
PROF =
NOCRYPT =
C_FLAGS = -O -Wall -g -ggdb3 -Dlinux $(PROF) $(NOCRYPT)
L_FLAGS = -O $(PROF)
IMC_OFILES = ice.o imc-events.o imc-interp.o imc-util.o icec-mercbase.o \
imc-mail.o imc-version.o imc-config.o imc-mercbase.o imc.o icec.o
O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o comm.o const.o \
db.o fight.o handler.o interp.o magic.o save.o special.o update.o \
kav_info.o kav_fight.o kav_wiz.o clan.o mage.o rot_wiz.o \
demon.o wizutil.o low_act.o dempowers.o drow.o vamp.o warlock.o\
leader.o arena.o config.o ninja.o monk.o monk2.o \
monk3.o garou.o olc.o string.o bit.o board.o bounty.o \
kingdom.o clan_list.o low_wiz.o low_misc.o $(IMC_OFILES)
low: $(O_FILES)
rm -f merc
$(CC) $(L_FLAGS) -o merc $(O_FILES)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<
|
is this what you mean by pastebin? i've never heard anybody use that term before so i was unsure.
|
|
......................... Every man has his follies, and often they are the most interesting thing he has got - Josh Billings
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. - Albert Einstein
I have a love interest in every one of my films... a gun. - Arnold Schwarzenegger
Recession is when a neighbor loses his job. Depression is when you lose yours. - Ronald Reagan
I like long walks, especially when they are taken by people who annoy me. - Fred Allen
|
|