Page 1 of 1
[Question] Сustomed .exe:How to compile?
Posted: 2008-05-31 12:17
by AlexCross
Does any one know how to compile this code:
FH2.exe Source - Forgotten Hope Wiki ? I'd tried to compile in Dev-C++ but got errors. Can you help me?
Re: [Question] Ñustomed .exe:How to compile?
Posted: 2008-05-31 12:48
by AlexCross
Ok. Here are errors.
Code: Select all
45 D:\Dev-Cpp\Projects\unnamed1.cpp `MOVE_DIRECTORY' was not declared in this scope
45 D:\Dev-Cpp\Projects\unnamed1.cpp `WHERE_MY_DOCUMENTS' was not declared in this scope
45 D:\Dev-Cpp\Projects\unnamed1.cpp `WHERE_MY_DOCUMENTS' was not declared in this scope
46 D:\Dev-Cpp\Projects\unnamed1.cpp `MOVE_DIRECTORY' was not declared in this scope
46 D:\Dev-Cpp\Projects\unnamed1.cpp `WHERE_MY_DOCUMENTS' was not declared in this scope
46 D:\Dev-Cpp\Projects\unnamed1.cpp `WHERE_MY_DOCUMENTS' was not declared in this scope
and etc...
It is into the DevC++ and Builder C++. May be I should use something else to compile this?
Re: [Question] Сustomed .exe:How to compile?
Posted: 2008-05-31 13:59
by M.0.D
no i do not think that anything will compile this .. you need the declaration of "MOVE_DIRECTORY" and "WHERE_MY_DOCUMENTS" in the file, no compiler can work with things he doesn't know
Re: [Question] Сustomed .exe:How to compile?
Posted: 2008-05-31 15:03
by AlexCross
I don't know what kind of type it should be.
I'm got this errors, if I declaret them as char:
55 D:\Dev-Cpp\Projects\unnamed1.cpp invalid conversion from `char' to `pathspec::<anonymous enum>'
Re: [Question] Сustomed .exe:How to compile?
Posted: 2008-05-31 15:29
by Masaq
Why not take it up with the FH2 team?
Mas
Re: [Question] Сustomed .exe:How to compile?
Posted: 2008-05-31 16:09
by AlexCross
I just thought that PR team could told me, how they are compiled that code

Re: [Question] Сustomed .exe:How to compile?
Posted: 2008-05-31 21:38
by M.0.D
is this the install-exe? if so you could try to declare them as pathspec and fill them with the right paths, MOVE_DIRECTORY as the directory where it should be installed etc
Perhaps it is explained in the exe what path is used for what
Re: [Question] Сustomed .exe:How to compile?
Posted: 2008-06-01 07:38
by AlexCross
No it's launch-exe... I hope

Re: [Question] Сustomed .exe:How to compile?
Posted: 2008-06-02 00:11
by [fh]ctz
AlexCross wrote:Can you help me?
This is C. Trying to compile it as C++ is unlikely to work, though it would be relatively easy to convert. Try naming the file .c and perhaps Dev-C++ will do the right thing. But I don't have much experience of that.
AlexCross wrote:I just thought that PR team could told me, how they are compiled that code
I did it for them and sent them the exe.
Re: [Question] Сustomed .exe:How to compile?
Posted: 2008-06-02 08:04
by AlexCross
Try naming the file .c and perhaps Dev-C++ will do the right thing.
Yeah, that's better. But I still have errors:
[Linker error] undefined reference to `_imp__PathAppendA@8'