Help compiling.

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

dieselmachine
Posts: 36
Joined: 2003-01-20 03:22
Location: Rochester, NY, USA

Help compiling.

Post by dieselmachine » 2003-04-21 01:56

First, i've checked through every post here i could find, and found nothing matching my problem, so if i missed the answer somehow, my apologies.

I'm getting 1 error when compiling. to get rid of the obvious replies right away, my includes are in exactly the right order they are supposed to be in, so please dont suggest that they are incorrect ;-]

I have the updated SDK, and all that jazz. compile.txt was followed to the letter. No deviations from the instructions were made.

Now, with that said, here's the error.

Compiling...
stdafx.cpp
Compiling...
ADLSearch.cpp
c:\documents and settings\jt\desktop\dcplusplus-0.242-src\client\adlsearch.cpp(194) : fatal error C1010: unexpected end of file while looking for precompiled header directive

(rest compile fine)
(dot dot dot)

UploadPage.cpp
UsersFrame.cpp
WinUtil.cpp
Generating Code...
Error executing cl.exe.

DCPlusPlus.exe - 1 error(s), 15 warning(s)

So, can someone translate this for me, and tell me how i managed to mess this up? As far as I can tell, the adl search files are all in the correct places (i saw mention of a similar problem in another thread, but the responses there were of no use to me).

Thanks.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Post by GargoyleMT » 2003-04-21 12:58

Which compiler version are you using? I compile it with Visual Studio .NET, and it's been tested occasionally with Visual Studio 6, but I don't think any main programmers around DC++ have VS.NET 2003 to test it with.

If you can't attribute this gremlin to software versions, you can go into the properties on the client project and turn off Precompiled Headers under C/C++ > Precompiled Headers. (I haven't tested that myself)

dieselmachine
Posts: 36
Joined: 2003-01-20 03:22
Location: Rochester, NY, USA

Post by dieselmachine » 2003-04-21 14:22

Thanks for the tip. I tried it out and managed to eliminate the error i was getting, but it was replaced with a few more. Unsurprisingly, they all involve adlsearch. ;-]

New error output:

ADLSearchFrame.obj : error LNK2001: unresolved external symbol "public: long __thiscall ADLSProperties::OnCloseCmd(unsigned short,unsigned short,struct HWND__ *,int &)" (?OnCloseCmd@ADLSProperties@@QAEJGGPAUHWND__@@AAH@Z)
ADLSearchFrame.obj : error LNK2001: unresolved external symbol "public: long __thiscall ADLSProperties::OnInitDialog(unsigned int,unsigned int,long,int &)" (?OnInitDialog@ADLSProperties@@QAEJIIJAAH@Z)
App/DCPlusPlus.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

DCPlusPlus.exe - 3 error(s), 0 warning(s)

Any ideas now? Also, im using VS6.0 if that makes any difference.

gonzo
Posts: 2
Joined: 2003-04-21 16:11

Post by gonzo » 2003-04-21 16:19

dieselmachine:

I got the exact same error when I was trying to compile the 0.242 source.
I noticed that the files ADLSProperties.cpp and ADLSProperties.h was not added to the DCPlusPlus project.
So I just added ADLSProperties.cpp under DCPlusPlus\Source Files and ADLSProperties.h under DCPlusPlus\Header files
After that, building the .exe-file worked fine.

/gonzo

dieselmachine
Posts: 36
Joined: 2003-01-20 03:22
Location: Rochester, NY, USA

Post by dieselmachine » 2003-04-21 23:38

Okay, one more time. Heheh. This is the new error. I look at the help file for the /Zm command, and didnt really find any info on how to use it, so I tried going into project->settings->custom build and then, in the comands box, i typed /Zm200 (200 percent of default heap size). That apparently did nothing. I probably did that all wrong, but I have no idea how to use this program. Any help, again, would be much appreciated! Thanks for being so patient!

MainFrm.cpp
c:\stlport\stl\_alloc.h(363) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit

Generating Code...
Error executing cl.exe.

DCPlusPlus.exe - 1 error(s), 7 warning(s)

Who is online

Users browsing this forum: Google [Bot] and 0 guests