Hello World

This is a discussion on Hello World within the C++ Programming forums, part of the General Programming Boards category; ahh, yes, i've done this much. I've been able to add this location to the linker options...

  1. #16
    Registered User
    Join Date
    Oct 2008
    Posts
    16
    ahh, yes, i've done this much. I've been able to add this location to the linker options

  2. #17
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Now that you have the directory, you have to specify the libraries themselves under Linker -> Input -> Additional Dependencies.

  3. #18
    Registered User
    Join Date
    Oct 2008
    Posts
    16
    yes, this is correct. I specified the exact path

  4. #19
    Registered User
    Join Date
    Oct 2008
    Posts
    16
    Ok, I've been able to compile the application.

    It's a console application, it compiles then tried to Execute but tells me the 3rd party DLL can't be found when running (error)

    I tried copying and pasting the DLL in the Release folder of the project, no luck.

    Another thing, it's running but I can't find the EXE?? Weird.

  5. #20
    Registered User
    Join Date
    Oct 2008
    Posts
    16
    Command Lines Creating temporary file "c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\MCS_C all\Release\RSP0000251163211232.rsp" with contents
    [
    /O2 /GL /I "C:\MCS_API\NNSMCAPI_Package\Include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MDd /Zp1 /Zc:wchar_t- /Yu"stdafx.h" /Fp"Release\MCS_Call.pch" /Fo"Release\\" /Fd"Release\vc80.pdb" /W3 /c /Wp64 /Zi /TP .\SipApp.cpp

    .\MCS_Call.cpp
    ]
    Creating command line "cl.exe @c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\MCS_C all\Release\RSP0000251163211232.rsp /nologo /errorReportrompt"
    Creating temporary file "c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\MCS_C all\Release\RSP0000261163211232.rsp" with contents
    [
    /O2 /GL /I "C:\MCS_API\NNSMCAPI_Package\Include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MDd /Zp1 /Zc:wchar_t- /Yc"stdafx.h" /Fp"Release\MCS_Call.pch" /Fo"Release\\" /Fd"Release\vc80.pdb" /W3 /c /Wp64 /Zi /TP .\stdafx.cpp
    ]
    Creating command line "cl.exe @c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\MCS_C all\Release\RSP0000261163211232.rsp /nologo /errorReportrompt"
    Creating temporary file "c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\MCS_C all\Release\RSP0000271163211232.rsp" with contents
    [
    /OUT:"C:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\R elease\MCS_Call.exe" /INCREMENTAL:NO /LIBPATH:"C:\MCS_API\NNSMCAPI_Package\lib\Release" /MANIFEST /MANIFESTFILE:"Release\MCS_Call.exe.intermediate.ma nifest" /DEBUG /PDB:"c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\r elease\MCS_Call.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /MACHINE:X86 "C:\\program Files\\nortel PC Client\\bin\\NNSMCAPI.lib" "C:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\Lib\\bufferoverflowu.lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

    ".\Release\MCS_Call.obj"

    ".\Release\SipApp.obj"

    ".\Release\stdafx.obj"
    ]
    Creating command line "link.exe @c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\MCS_C all\Release\RSP0000271163211232.rsp /NOLOGO /ERRORREPORT:PROMPT"
    Creating temporary file "c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\MCS_C all\Release\RSP0000281163211232.rsp" with contents
    [
    /outputresource:"..\release\MCS_Call.exe;#1" /manifest

    .\Release\MCS_Call.exe.intermediate.manifest
    ]
    Creating command line "mt.exe @c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\MCS_C all\Release\RSP0000281163211232.rsp /nologo"
    Creating temporary file "c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\MCS_C all\Release\BAT0000291163211232.bat" with contents
    [
    @echo Manifest resource last updated at %TIME% on %DATE% > .\Release\mt.dep
    ]
    Creating command line "c:\NET_DEVELOPMENT\scrap\TestWIZARD\MCS_API\MCS_C all\Release\BAT0000291163211232.bat"

  6. #21
    Registered User
    Join Date
    Oct 2008
    Posts
    16
    Ok, compile and execute was fixed, I wasn't looking in the right location for the EXE.

    anyway, new problem. Hope someone can help me.

    I get a Access Violation Reading Location error.

    When I follow some of the code I find this

    Code:
    	template<class _Traits>
    	inline
    	typename _Traits::char_type *copy_s(typename _Traits::char_type *_First1, size_t _Size,
    		const typename _Traits::char_type *_First2, size_t _Count, _Secure_char_traits_tag)
    	{
    		return _Traits::_Copy_s(_First1, _Size, _First2, _Count);
    	}
    The _First , _Size and _First2 look normal. however, the _Count value doesn't mean anything to me.

    _Size is 31 and _Count is something like 1244784?

    Any ideas?

  7. #22
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    Can you go to the first place in the call stack that is part of your code and show us that?

  8. #23
    Registered User
    Join Date
    Oct 2008
    Posts
    16
    this is what is called

    Client::instance().initialize(L"sometext");

  9. #24
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    You'll probably have to do a little more investigating, since that doesn't help much. What else is on the call stack? What calls copy_s? Are any of the objects null or deleted or uninitialized?

  10. #25
    Registered User
    Join Date
    Oct 2008
    Posts
    16
    it would have to be something in the 3rd party dll

    also, i can compile as "debug" only as "release"

    Debug gives me a slew of errors.

  11. #26
    Registered User
    Join Date
    Oct 2008
    Posts
    16
    I have it working in debug now but the same section of code gives me a different error.

    std::length_error at memory location 0x00012....

    is there some kind if log I can get so I can post here?

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The 7 New Wonders of the World
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 36
    Last Post: 12-08-2006, 12:55 PM
  2. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 04:39 PM
  3. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM
  4. Too much to ask ?
    By deflamol in forum C Programming
    Replies: 2
    Last Post: 05-06-2004, 04:30 PM
  5. No More Technology After World War Three
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 09-20-2001, 07:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21