Thread

Compiler errors... (Sdk)

Compiler errors... // Sdk

1  |  

kah

Feb 9, 2001, 7:15pm
I'm trying to make an improvement of the HamBot with the free source-code,
but when I compile I get these errors:

n file included from e:\c__~1\aw\hambot\hambot.cpp:14:
e:\c__~1\aw\hambot\StdaFx.h:25: afxwin.h: No such file or directory
e:\c__~1\aw\hambot\StdaFx.h:26: afxext.h: No such file or directory
e:\c__~1\aw\hambot\StdaFx.h:27: afxdisp.h: No such file or directory
e:\c__~1\aw\hambot\StdaFx.h:29: afxcmn.h: No such file or directory
e:\c__~1\aw\hambot\StdaFx.h:32: afxsock.h: No such file or directory
In file included from e:\c__~1\aw\hambot\hambot.cpp:15:
e:\c__~1\aw\hambot\HamBot.h:22: #error include 'stdafx.h' before including
this file for PCH

I use Bloodshed Dev-C++ 4, all files are located in E:\C++\AW\HamBot\
I even copyed those files that are missing myself! Is there any hidden (at
least for me) meaning of this?

KAH

ananas

Feb 9, 2001, 7:45pm
Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------13F1F3CEAD71406F1FFE7D8A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

there is a difference between :

#include "something.h"
and
#include <something.h>


The "" version expects the files in the current directory, the <>
version in the include path.

You can do 3 things to solve it :

- replace the <> (I guess these are used) by "" in the source (worst way
as you have to do it everytime you upgrade)

- add E:\C++\AW\HamBot\ to your include shell variable (second best as
it will be searched when you compile other projects tt)

- add a compiler option -IE:\C++\AW\HamBot\ (guessed, I don't know your
compiler) to your project or makefile (or maybe the CFLAGS or CPPFLAGS
if your "make"-command handles these). This adds this path only to your
current project and should be preferred.

Volker

kah schrieb:
>
> I'm trying to make an improvement of the HamBot with the free source-code,
> but when I compile I get these errors:
>
> n file included from e:\c__~1\aw\hambot\hambot.cpp:14:
> e:\c__~1\aw\hambot\StdaFx.h:25: afxwin.h: No such file or directory
> e:\c__~1\aw\hambot\StdaFx.h:26: afxext.h: No such file or directory
> e:\c__~1\aw\hambot\StdaFx.h:27: afxdisp.h: No such file or directory
> e:\c__~1\aw\hambot\StdaFx.h:29: afxcmn.h: No such file or directory
> e:\c__~1\aw\hambot\StdaFx.h:32: afxsock.h: No such file or directory
> In file included from e:\c__~1\aw\hambot\hambot.cpp:15:
> e:\c__~1\aw\hambot\HamBot.h:22: #error include 'stdafx.h' before including
> this file for PCH
>
> I use Bloodshed Dev-C++ 4, all files are located in E:\C++\AW\HamBot\
> I even copyed those files that are missing myself! Is there any hidden (at
> least for me) meaning of this?
>
> KAH
--------------13F1F3CEAD71406F1FFE7D8A
Content-Type: text/x-vcard; charset=us-ascii;
name="vha.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Visitenkarte für Volker Hatzenberger
Content-Disposition: attachment;
filename="vha.vcf"

begin:vcard
n:Hatzenberger;Volker
x-mozilla-html:FALSE
url:oct31.de
adr:;;Bornheimer Strasse 15;Bonn;;53111;Germany
version:2.1
email;internet:vha at oct31.de
end:vcard

--------------13F1F3CEAD71406F1FFE7D8A--

kah

Feb 9, 2001, 9:35pm
ok, thanx :-))

*tryes out*

KAH
[View Quote]

kah

Feb 10, 2001, 9:00am
still got some errors...one of the causes was that the compiler hidd most of
the source of one of the files...trying to fix it with Notepad

KAH
[View Quote]

kah

Feb 10, 2001, 9:10am
AAAAAAAAAAAAAAARGH!!! I changed the <>s to ""s but it still doesn't work! I
even copyed all the filesit wanted to to directory! As a proof, I've
included the directory listing of E:\C++\AW\HamBot\ (generated by WS_FTP)

KAH
[View Quote]
begin 666 hambot-dir.txt
M($1I<F5C=&]R>2!O9B!%.EQ#*RM<05=<2&%M0F]T#0H-"BX at (" at (" at (" at
M(" at (" at (" at (" at (" at (" at (" \1$E2/B at (" at (#(P,#$M,#$M,3D at (#$Y
M.C4Y#0HN+B at (" at (" at (" at (" at (" at (" at (" at (" at (" at /$1)4CX at (" at
M(" R,# Q+3 Q+3$Y(" Q.3HU.0T*2&%M0F]T1&QG+F-P<" at (" at (" at (" at
M(" at (" at (" at (" at .3(Y-30 at ,C P,"TQ,2TS," at ,30Z,#,-"DAA;4)O="YC
M<' at (" at (" at (" at (" at (" at (" at (" at (" at (" R.#(P(#(P,#$M,#(M,3 at
M(#$Q.C4S#0I(86U";W1$;&<N:" at (" at (" at (" at (" at (" at (" at (" at (" at
M.#$P,R Q.3DY+3$P+3 T(" at ,#HU.0T*0F]T+F-P<" at (" at (" at (" at (" at
M(" at (" at (" at (" at (" at -#,R-C( at ,C P,2TP,BTQ," at ,3$Z-#,-"D)O="YH
M(" at (" at (" at (" at (" at (" at (" at (" at (" at (" at (" U-#4P(#$Y.3DM,3 M
M,#0 at (" P.C4Y#0I(86U";W0N<F, at (" at (" at (" at (" at (" at (" at (" at (" at
M(" Q,#DS.2 R,# Q+3 Q+3(P(" Q,SHP,0T*0VQN='-O8VLN:" at (" at (" at
M(" at (" at (" at (" at (" at (" at (#$U-3( at ,3DY.2TQ,"TP-" at (# Z-3D-"D1L
M9U!R;WAY+F-P<" at (" at (" at (" at (" at (" at (" at (" at (" S,C,Q(#$Y.3DM
M,3 M,#0 at (" P.C4Y#0I$;&=0<F]X>2YH(" at (" at (" at (" at (" at (" at (" at
M(" at (" at ,3DV.2 Q.3DY+3$P+3 T(" at ,#HU.0T*2&%M0F]T+F%P<R at (" at
M(" at (" at (" at (" at (" at (" at (" at -#,Q,38 at ,C P,"TQ,2TS," at ,30Z,# at -
M"DAA;4)O="YC;'< at (" at (" at (" at (" at (" at (" at (" at (" at (" T,3,R(#(P
M,# M,3$M,S at (#$T.C$P#0I(86U";W0N9'-P(" at (" at (" at (" at (" at (" at
M(" at (" at (" at -3$U-B Q.3DY+3$P+3 T(" at ,3HS. T*2&%M0F]T+F]P=" at
M(" at (" at (" at (" at (" at (" at (" at (" at -3,W-C at ,3DY.2TQ,"TP-" at (#$Z
M,SD-"DAA;4)O="YD<W< at (" at (" at (" at (" at (" at (" at (" at (" at (" at -3,W
M(#$Y.3 at M,#0M,C at (#$T.C P#0I(86U";W0N:" at (" at (" at (" at (" at (" at
M(" at (" at (" at (" at ,38U-" Q.3DY+3$P+3 T(" at ,#HU.0T*2&%M0F]T+FYC
M8B at (" at (" at (" at (" at (" at (" at (" at (" U,C4S,3( at ,3DY.2TQ,"TP-" at
M(#$Z,SD-"DAA;4)O="YO9&P at (" at (" at (" at (" at (" at (" at (" at (" at (" Q
M,S0R(#$Y.3DM,3 M,#0 at (" P.C4Y#0I(86U";W0N:6YI(" at (" at (" at (" at
M(" at (" at (" at (" at (" at (#$V-R Q.3DY+3$P+3 T(" at ,3HR- T*2&%M0F]T
M+G!L9R at (" at (" at (" at (" at (" at (" at (" at (" at (" R-# at at ,C P,"TQ,2TS
M," at ,30Z,3(-"D-L;G1S;V-K+F-P<" at (" at (" at (" at (" at (" at (" at (" at
M(" T-# at S(#$Y.3DM,3 M,#0 at (" P.C4Y#0I(86U";W0N<F5G(" at (" at (" at
M(" at (" at (" at (" at (" at (" at (#8Y,R Q.3DX+3 T+3(P(" Q,CHS- at T*3&]O
M:W5P+F-P<" at (" at (" at (" at (" at (" at (" at (" at (" at (#$W,#$ at ,3DY.2TQ
M,"TP-" at (# Z-3D-"E-T9$%F>"YC<' at (" at (" at (" at (" at (" at (" at (" at
M(" at (" at -3(V(#(P,#$M,#(M,3 at (#$Q.C0U#0I496QE<&]R=$1L9RYC<' at
M(" at (" at (" at (" at (" at (" at (" at ,C$Y-" Q.3DY+3$P+3 T(" at ,#HU.0T*
M3&]O:W5P+F at at (" at (" at (" at (" at (" at (" at (" at (" at (" at (#$U.#4 at ,3DY
M.2TQ,"TP-" at (# Z-3D-"E-T9$%F>"YH(" at (" at (" at (" at (" at (" at (" at
M(" at (" at (" R,#0Y(#(P,#$M,#(M,3 at (#$Q.C0X#0I496QE<&]R=$1L9RYH
M(" at (" at (" at (" at (" at (" at (" at (" at ,3<R-B Q.3DY+3$P+3 T(" at ,#HU
M.0T*5&]$;RYT>'0 at (" at (" at (" at (" at (" at (" at (" at (" at (" at (" V-#( at
M,3DY.2TQ,"TP-" at (#$Z,C<-"E)%4T]54D-%+D at at (" at (" at (" at (" at (" at
M(" at (" at (" at (" R.#$X(#$Y.3 at M,# at M,3( at (#(Q.C,Q#0I296QE87-E(" at
M(" at (" at (" at (" at (" at (" at (" at /$1)4CX at (" at (" R,# Q+3 Q+3$Y(" Q
M.3HU.0T*4D53(" at (" at (" at (" at (" at (" at (" at (" at (" at (#Q$25(^(" at
M(" at ,C P,2TP,2TQ.2 at ,3DZ-3D-"D%7+D1,3" at (" at (" at (" at (" at (" at
M(" at (" at (" at (" at (#DX,S T(#(P,# M,# at M,# at at (#$V.C4V#0I!5RY,24( at
M(" at (" at (" at (" at (" at (" at (" at (" at (" at (" Q-3(P," R,# P+3 X+3 X
M(" Q-CHU- at T*05<N2" at (" at (" at (" at (" at (" at (" at (" at (" at (" at (" at
M,3$P,#D at ,C P,"TP-"TR-B at ,3,Z,3$-"E)%041-12Y46%0 at (" at (" at (" at
M(" at (" at (" at (" at (" at (" at .#4U(#(P,# M,#0M,C8 at (#$S.C(S#0I,24-%
M3E-%+E185" at (" at (" at (" at (" at (" at (" at (" at (" at -C<S,2 R,# P+3 S
M+3,P(" Q-3HR, T*24Y#3%5$12 at (" at (" at (" at (" at (" at (" at (" at (#Q$
M25(^(" at (" at ,C P,2TP,BTP.2 at ,C$Z,C0-"DQ)0B at (" at (" at (" at (" at
M(" at (" at (" at (" at (" \1$E2/B at (" at (#(P,#$M,#(M,#D at (#(Q.C(T#0I!
M1EA724XN2" at (" at (" at (" at (" at (" at (" at (" at (" at (#$U,C4W-" Q.3DV
M+3$R+3$R(" Q-#HS, T*04981$E34"Y((" at (" at (" at (" at (" at (" at (" at
M(" at (" at -3 V-S at at ,3DY-BTQ,BTP,R at ,3<Z,C4-"D%&6$--3BY((" at (" at
M(" at (" at (" at (" at (" at (" at (" at (#(V-S0V(#$Y.38M,3 M,S at (#(P.C(U
M#0I!1EA33T-++D at at (" at (" at (" at (" at (" at (" at (" at (" at (" Q,#0S,2 Q
M.3DV+3$Q+3 Y(" Q,SHR- at T*049815A4+D at at (" at (" at (" at (" at (" at (" at
M(" at (" at (" at ,S0X,C4 at ,3DY-BTQ,BTQ,2 at (# Z,C at -"D%&6"Y((" at (" at
M(" at (" at (" at (" at (" at (" at (" at (" at (#4V,S8R(#$Y.38M,3 M,S at (#(P
M.C(U#0I!1EA215,N2" at (" at (" at (" at (" at (" at (" at (" at (" at (" S,3DR
M.2 Q.3DV+3$R+3 S(" Q-#HU- at T*04980T],3"Y((" at (" at (" at (" at (" at
M(" at (" at (" at (" at ,S0T,C0 at ,3DY-BTQ,"TS," at ,C Z,C4-"D%&6$U31U\N
M2" at (" at (" at (" at (" at (" at (" at (" at (" at (#,T,C V(#$Y.38M,3(M,C at
M(" Y.C(Y#0I!1EA$1%\N2" at (" at (" at (" at (" at (" at (" at (" at (" at (" at
M,S0Y,B Q.3DV+3$P+3,P(" R,#HR-0T*04981$Q'4RY((" at (" at (" at (" at
H(" at (" at (" at (" at (" at ,3DQ-C8 at ,3DY-BTQ,"TS," at ,C Z,C4-" at ``
`
end

ananas

Feb 10, 2001, 9:35am
Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------7EA0CEB9865BFC79F3F57DF3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

the errors are reported in the stdafx.h file, not in hambot.cpp. Maybe
you should add the directory to your include path (project or windows
environment) instead of modifying the file. I bet that's a lot less
work.

kah schrieb:
>
> AAAAAAAAAAAAAAARGH!!! I changed the <>s to ""s but it still doesn't work! I
> even copyed all the filesit wanted to to directory! As a proof, I've
> included the directory listing of E:\C++\AW\HamBot\ (generated by WS_FTP)
>
> KAH
[View Quote] begin:vcard
n:Hatzenberger;Volker
x-mozilla-html:FALSE
url:oct31.de
adr:;;Bornheimer Strasse 15;Bonn;;53111;Germany
version:2.1
email;internet:vha at oct31.de
end:vcard

--------------7EA0CEB9865BFC79F3F57DF3--

ananas

Feb 10, 2001, 9:40am
Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------41D2B14BB60D20B31DE3DAAB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

One more idea - maybe the preprocessor of your c++ is a 16 bit console
program?
The message sounds like it as it uses the short DOS filenames.

You could try to move your project to e:\prj\AW\HamBot for example -
avoiding too long names (using max. 8.3) and avoiding special characters
like blank and plus
--------------41D2B14BB60D20B31DE3DAAB
Content-Type: text/x-vcard; charset=us-ascii;
name="vha.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Visitenkarte für Volker Hatzenberger
Content-Disposition: attachment;
filename="vha.vcf"

begin:vcard
n:Hatzenberger;Volker
x-mozilla-html:FALSE
url:oct31.de
adr:;;Bornheimer Strasse 15;Bonn;;53111;Germany
version:2.1
email;internet:vha at oct31.de
end:vcard

--------------41D2B14BB60D20B31DE3DAAB--

kah

Feb 10, 2001, 10:52am
I still need a few more header files that I couldn't find:
crtdbg.h
ocidl.h

AAAAAAAAAAARGH!!! each time I recompile it asks for more files! Why couldn't
it have been in one or two files like with VB??!! If just the VB sdk would
work...

Woohooo!!!! now it just needs those header files that I don't have! :-))))

KAH
PS. I'll make a BIIIIIG "thanks to" note about you, Ananas! I'm really
apreciating the help you're providing!
[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2022. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn