Due to continual spamming, forum registrations are now by Invitation Only. Hopefully this will be only a temporary measure to combat spammers.

If you want an invitation contact forumapplication @ camstudio . org

Sorry for the inconvenience.

Visual Sudio 2008 Compilation Error(s)

itc
edited May 2009 in Support
Hi

We've tried to compile the source code
under Visual Studio 2008, but it would
return a whole bunch of erros,
for various reasons.

Any idea why?
And most importantly, how to get
the code to compile under VS 2008?

Following is a concise version of the Build Log;
if you'd like (or are REALLY bored),
please take a look:

Build Log
Build started: Project: vscap, Configuration: Release|Win32

Command Lines
Creating temporary file "d:\Camstudio-2.0-src\vscap20s\Release\RSP00000324522988.rsp" with contents
[
/Ob1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0700" /D "_AFXDLL" /GF /FD /EHsc /MD /Gy /Fp".\Release/vscap.pch" /Fo".\Release/" /Fd".\Release/" /W3 /c /TP ".\vscapView.cpp"

".\SpeakersImpl.cpp"

".\ScreenAnnotations.cpp"

".\AudioFormat.cpp"
]
Creating command line "cl.exe @"d:\Camstudio-2.0-src\vscap20s\Release\RSP00000324522988.rsp" /nologo /errorReport:prompt"

Output Window
Compiling...
vscapView.cpp
WINVER not defined. Defaulting to 0x0600 (Windows Vista)
.\vscapView.cpp(1503) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(74) : see declaration of 'strcpy'

... (several of the above, for 'strcpy').

.\vscapView.cpp(3674) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(366) : see declaration of 'sprintf'

... (several of the above, for 'sprintf').

.\vscapView.cpp(5742) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(237) : see declaration of 'fopen'

... (several of the above, for 'fopen').

.\vscapView.cpp(6061) : warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(256) : see declaration of 'fscanf'

... (several of the above, for 'fscanf' + similar function_name ('fscanf') but a different error:).


.\vscapView.cpp(6320) : error C2664: 'fscanf' : cannot convert parameter 2 from 'const char (*)[24]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

... (then some other errors:)

SpeakersImpl.cpp
WINVER not defined. Defaulting to 0x0600 (Windows Vista)
.\SpeakersImpl.cpp(861) : error C2065: 'dwi' : undeclared identifier
.\SpeakersImpl.cpp(861) : error C2065: 'dwi' : undeclared identifier
.\SpeakersImpl.cpp(861) : error C2065: 'dwi' : undeclared identifier
.\SpeakersImpl.cpp(864) : error C2065: 'dwi' : undeclared identifier
ScreenAnnotations.cpp
WINVER not defined. Defaulting to 0x0600 (Windows Vista)
.\ScreenAnnotations.cpp(1603) : error C2065: 'i' : undeclared identifier
.\ScreenAnnotations.cpp(1603) : error C2065: 'i' : undeclared identifier
.\ScreenAnnotations.cpp(1603) : error C2065: 'i' : undeclared identifier
.\ScreenAnnotations.cpp(1605) : error C2065: 'i' : undeclared identifier
AudioFormat.cpp
WINVER not defined. Defaulting to 0x0600 (Windows Vista)
.\AudioFormat.cpp(129) : warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(324) : see declaration of 'sscanf'
.\AudioFormat.cpp(303) : error C2065: 'i' : undeclared identifier
.\AudioFormat.cpp(303) : error C2065: 'i' : undeclared identifier
.\AudioFormat.cpp(303) : error C2065: 'i' : undeclared identifier
.\AudioFormat.cpp(305) : error C2065: 'i' : undeclared identifier
.\AudioFormat.cpp(306) : error C2065: 'i' : undeclared identifier
.\AudioFormat.cpp(307) : error C2065: 'i' : undeclared identifier
Generating Code...

Results
Build log was saved at "file://d:\Camstudio-2.0-src\vscap20s\Release\BuildLog.htm"
vscap - 35 error(s), 81 warning(s)

Comments

  • Oh BTW,

    The OS is XP Pro with SP2,
    and the IDE is VS 2008 Pro
    with SP1.
  • We'de appreciate any help.

    Thanks in advance
    :-)
  • Hi itc (nice to see you FINALLY on here! ;o)

    The V2.0 source is full of errors. Your best bet is to compile the source sitting in SVN on Sourceforge which has has all those bugs fixed.

    That version is 2.6, (which of course is based on 2.0) and has had serious amounts of work done with it to compile.

    All coders please note that the 2.0 source code is only there for historical reasons and to comply with the GPL.

    You should be working off the 2.6 code in Sourceforge SVN, otherwise you are duplicating efforts already done and dusted.

    Cheers

    Nick :o)
  • Hi Nick The Geek :-)

    Thanks for the suggestions...

    But, forgive our ignorance, as
    we got no idea where to find
    CamStudio v2.6 on SourceForge
    (as all it offers is v2.0), plus
    we're not exactly sure what
    this SVN thing is?

    Cheers
  • Oh well,

    We tried looking for it online,
    and found a link on this site
    of http://sourceforge.net/svn/?group_id=131922

    When we visited there, but that page
    listed a bunch of (we're guessing)
    instructions we had no idea what to do
    with or how to apply :-(

    Your advice please.
  • Hi

    Any ideas on how to use an SVN tool (software?) in order
    to download CamStudio v2.6 sources ?

    Thanks
  • http://camstudio.org/blog/camstudio-26-source-code-now-available-via-sourceforge-svn

    I think "mrtsherman"s comment (#20) will get you up and running.

    Cheers

    Nick :o)
  • Hi Nick The (Great + Genius) Geek :-)

    We've tried something like that,
    and... it worked!!!

    Thanks much :-)
Sign In or Register to comment.