Author |
Message |
Agile Guest
Offline
|
|
Back to top |
|
 |
tcsoccerman Server Help Squatter
Age:33 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Thu Feb 28, 2008 4:23 pm Post subject: |
 |
|
|
|
i think it's the double "=". remove one of them in 1rst->start == NULL line |
|
Back to top |
|
 |
Samapico No, these DO NOT look like penises, ok?

Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Thu Feb 28, 2008 4:32 pm Post subject: |
 |
|
|
|
tcsoccerman wrote: | i think it's the double "=". remove one of them in 1rst->start == NULL line |
That would make it return the value of the assigned value. Which would ALWAYS be 0.
So... no.
It says syntax error before... make sure the preceding code doesn't lack a ';' or something.
Also, make sure the type 'Link' is defined for that part of the code _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Thu Feb 28, 2008 4:35 pm Post subject: |
 |
|
|
|
maybe you made this mistake of including the "utils.c" file instead of "utils.h" _________________ Rediscover online gaming. Get Subspace | STF The future...prehaps |
|
Back to top |
|
 |
Agile Guest
Offline
|
Posted: Thu Feb 28, 2008 7:09 pm Post subject: |
 |
|
|
|
Well, util.h is included at the bottom of util.c, so if you include c you also get h.
The reverse is not true as far as I know, and if I compile without util.c I get linker errors on amalloc and all the LL functions being undefined. |
|
Back to top |
|
 |
Agile Guest
Offline
|
Posted: Thu Feb 28, 2008 7:24 pm Post subject: |
 |
|
|
|
Also, there are plenty of places Link is in the source and it only gives an error on that one line containing Link. It never complains anywhere else about Link being undefined...I'll check it out but I don't think that's the cause.
It also gives the SAME ERROR 4 lines down, in the int LLIsEmpty line.
There is quite clearly no syntax error there, so I'm stumped.
Also I noted that util.c is not even normally included in autoturret.c... how does that even compile for grelminar without util.h or util.c?
-JP |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Thu Feb 28, 2008 9:08 pm Post subject: |
 |
|
|
|
Agile wrote: | Well, util.h is included at the bottom of util.c, so if you include c you also get h.
The reverse is not true as far as I know, . |
Trust me on this. You are wrong.
The reverse is true. If you only include util.h the compiler will find util.c and link it in.
This is a case of counter-intuitiveness, what may seem correct and logical, is in fact wrong.
You shouldn't be including any files that end in ".c" in your source code. you should only need to include asss.h as that includes a reference to utils.h anyway.
Bascially you only need to include the interfaces (the files ending in .h) not the implementation. The Compiler will work out that for you.. |
|
Back to top |
|
 |
Agile Guest
Offline
|
|
Back to top |
|
 |
Agile Guest
Offline
|
Posted: Thu Feb 28, 2008 10:37 pm Post subject: |
 |
|
|
|
^compiled with asss.h and without util.c |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Feb 29, 2008 8:02 am Post subject: |
 |
|
|
|
add util.o to your linker settings. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Agile Guest
Offline
|
Posted: Fri Feb 29, 2008 4:20 pm Post subject: |
 |
|
|
|
OK, that did it $
I'm wondering now why the linking failed in the first place? What could have caused that? |
|
Back to top |
|
 |
Agile Guest
Offline
|
Posted: Fri Feb 29, 2008 5:14 pm Post subject: |
 |
|
|
|
Lol, nobody told me about this thread:
http://forums.minegoboom.com/viewtopic.php?t=7389
From there I found this link:
http://wiki.minegoboom.com/index.php/Installing_New_Modules#With_Dev_C.2B.2B
This not only is a great tutorial that solved my every problem, it also made me realize I never had to download posix pthread stuff because it was already there in windeps folder.
As a result of doing this correctly my dll file is 1/5th the size it was doing things my way.
I should be pretty much set from now on, thanks everyone and look forward to RTZ zone coming soon.
PS Special Thx 2 smong,
-Agile |
|
Back to top |
|
 |
|