[Question] Сustomed .exe:How to compile?

Making or wanting help making your own asset? Check in here
Post Reply
AlexCross
Posts: 6
Joined: 2007-11-08 04:27

[Question] Сustomed .exe:How to compile?

Post 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?
AlexCross
Posts: 6
Joined: 2007-11-08 04:27

Re: [Question] Ñustomed .exe:How to compile?

Post 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?
Last edited by AlexCross on 2008-05-31 12:56, edited 2 times in total.
M.0.D
Posts: 138
Joined: 2006-05-07 21:54

Re: [Question] Сustomed .exe:How to compile?

Post 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
Image
This message has been made of environment-friendly recycled letters and words from deleted mails and is fully digital-degradable.
AlexCross
Posts: 6
Joined: 2007-11-08 04:27

Re: [Question] Сustomed .exe:How to compile?

Post 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>'
Masaq
Retired PR Developer
Posts: 10043
Joined: 2006-09-23 16:29

Re: [Question] Сustomed .exe:How to compile?

Post by Masaq »

Why not take it up with the FH2 team?

Mas

"That's how it starts, Mas, with that warm happy feeling inside. Pretty soon you're rocking in the corner, a full grown dog addict, wondering where your next St Bernand is coming from..." - IAJTHOMAS
"Did they say what he's angry about?" asked Annette Mitchell, 77, of the district, stranded after seeing a double feature of "Piranha 3D" and "The Last Exorcism." - Washington Post
AlexCross
Posts: 6
Joined: 2007-11-08 04:27

Re: [Question] Сustomed .exe:How to compile?

Post by AlexCross »

I just thought that PR team could told me, how they are compiled that code ;)
M.0.D
Posts: 138
Joined: 2006-05-07 21:54

Re: [Question] Сustomed .exe:How to compile?

Post 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
Image
This message has been made of environment-friendly recycled letters and words from deleted mails and is fully digital-degradable.
AlexCross
Posts: 6
Joined: 2007-11-08 04:27

Re: [Question] Сustomed .exe:How to compile?

Post by AlexCross »

No it's launch-exe... I hope :)
[fh]ctz
Posts: 7
Joined: 2007-12-11 01:36

Re: [Question] Сustomed .exe:How to compile?

Post 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.
AlexCross
Posts: 6
Joined: 2007-11-08 04:27

Re: [Question] Сustomed .exe:How to compile?

Post 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'
Post Reply

Return to “PR:BF2 Community Modding”