Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ SMAUG
➜ Lua
➜ Compiling on Cygwin
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
Posted by
| Orik
USA (182 posts) Bio
|
Date
| Mon 16 Jul 2007 12:08 AM (UTC) |
Message
| When I compile on cygwin straight out of the tgz after uncommenting the makefile, I get a slew of errors in the imc.c file.
I would say in about every function it says:
error: dereferencing pointer to incomplete type
It doesn't make it past imc.c. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Mon 16 Jul 2007 12:21 AM (UTC) |
Message
| Could you please show:
- the version of gcc you are using
- a sample line that is generating an error
- exactly what you did to the makefile
Other than the warning
Quote: lua_bits.c:65: warning: pointer targets in initialization differ in signedness
that was covered on the forums already, and needing to adjust the Lua include path slightly, it compiled cleanly for me.
I have gcc 4.1.2 running on Linux. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Orik
USA (182 posts) Bio
|
Date
| Reply #2 on Mon 16 Jul 2007 12:41 AM (UTC) |
Message
| I have gcc 3.4.4
a line of the error is:
imc.c:8443: error: dereferencing pointer to incomplete type
And that error is pretty much in every function of imc.c it looks like.
I uncommented CYGWIN and commented NEED_DL
I believe it might have to do with my version. Considering my desktop doesn't have internet access it will be hard to update if it is the version that's the culprit. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #3 on Mon 16 Jul 2007 12:51 AM (UTC) |
Message
| Hrm. Are there any other errors in there? I'd go to the top and bottom of the error list and see if there's anything different.
That error is telling you that you've got a forward declaration of CHAR_DATA, but no actual declaration.
This can happen is, for example, you haven't properly included mud.h -- which can happen if gcc failed to find e.g. the Lua headers and stopped processing mud.h. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Nick Gammon
Australia (23,057 posts) Bio
Forum Administrator |
Date
| Reply #4 on Mon 16 Jul 2007 01:01 AM (UTC) |
Message
| I have:
$ gcc --version
gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
When I did the stuff on this page:
http://www.gammon.com.au/forum/?id=8000&page=3
... it compiled OK for me.
As David said, fix the first error first. I have been finding that with gcc these days, if you leave off a semicolon it generates about 40 errors. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Orik
USA (182 posts) Bio
|
Date
| Reply #5 on Mon 16 Jul 2007 01:01 AM (UTC) |
Message
| I can't see the very top of the errors because I can't scroll up that far. I tried make > error.txt but it just showed the file that was compiling and then stopped before the errors.
This is straight from Nick's download link. So I'm not sure, I'm guessing it's just my compiler. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #6 on Mon 16 Jul 2007 01:08 AM (UTC) |
Message
| Try 2>error.txt; the errors are printed to sterr, not stdout.
You can also change the dosbox scroll-back by right-clicking on the icon in the task bar and going through the properties a bit (I think it might be in "buffer", but I don't remember). |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Orik
USA (182 posts) Bio
|
Date
| Reply #7 on Mon 16 Jul 2007 01:09 AM (UTC) |
Message
| Alright Nick, I must have missed that post. I'll look into it more from that post. | Top |
|
Posted by
| Nick Gammon
Australia (23,057 posts) Bio
Forum Administrator |
Date
| Reply #8 on Mon 16 Jul 2007 01:09 AM (UTC) |
Message
| I wouldn't guess that because I have the same one, as I said.
Try:
make &> error.txt
Try adjusting your window scrollback size so you keep more lines.
Make sure you copied the header files as I suggested in the link above. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #9 on Mon 16 Jul 2007 01:11 AM (UTC) |
Message
| Too many people posting at the same time here! :-) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Orik
USA (182 posts) Bio
|
Date
| Reply #10 on Mon 16 Jul 2007 01:29 AM (UTC) |
Message
| It compiled cleanly now. Thanks guys.
one last question. I downloaded gcc 4.1.2 do I just untar it and then put it in my lib/gcc or how would I make it update it? | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #11 on Mon 16 Jul 2007 01:31 AM (UTC) |
Message
| For posterity, what did you have to fix?
For gcc: I would install it via Cygwin's package installer. I think you can do local install, if you don't have direct internet access. If you got the archive from source, you will have a fun time installing it... |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Orik
USA (182 posts) Bio
|
Date
| Reply #12 on Mon 16 Jul 2007 01:34 AM (UTC) |
Message
| I pretty much did exactly what this link said to do:
http://www.gammon.com.au/forum/?id=8000&page=3
followed it step by step and it worked first time.
I downloaded it from gnu project site. Would I be able to local install it still? How would I do it? | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #13 on Mon 16 Jul 2007 01:39 AM (UTC) |
Message
| I don't really know, to be honest. I would be very uneasy about manually installing gcc, unless it comes with documentation tailored for cygwin.
I think you can only do local installations for Cygwin packages. I'm not sure where exactly you'd get those, as I've never had the need for one. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Orik
USA (182 posts) Bio
|
Date
| Reply #14 on Mon 16 Jul 2007 01:41 AM (UTC) |
Message
| bummer. Well, I guess it doesn't really matter since everything I've compiled so far is all I need to compile on it. Hopefully down the line I'll have internet to update all my cygwin files. It isn't much fun being poor. :) | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
58,695 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top