Forte 6 update 2: Compile errors
When I tried to recompile (using Forte C++ update 2) a project that was built fine under Workshop 4.2, Here are some of the errors that I received:
Making CList.o...
cc -g -Xc -I/usr/dt/include -I/usr/openwin/include -c CList.c
"./XmI.h", line 113: (union) tag redeclared: __XmStringRec
"CList.c", line 3605: warning: improper pointer/integer combination: op"="
"CList.c", line 3861: warning: improper pointer/integer combination: op"="
*** Error code 2
make: Fatal error: Command failed for target 'CList.o'
Making S_MoreTdimfElement.o...
CC -g -I. -I/usr/dt/include -I/usr/openwin/include
-I/home/lnguyen/tnp/include -compat -c S_Class.C
"S_Class.C", line 2996: Error: Overloading ambiguity between
"operator!=(const ClassA&, const ClassA&)" and
"ClassA::operator const char*() const".
"S_Class.C", line 3036: Error: Overloading ambiguity between
"operator!=(const ClassA&, const ClassA&)" and
"ClassA::operator const char*() const".
2 Error(s) detected.
***Error code 2
make: Fatal error: Command failed for target S_Class.o
Anyone's seen this before?
Thanks in advance...
This was changed from an error to a warning about anacronism in the Forte Developer 7 C++ compiler. The warning can then be suppressed in a variety of ways including :
CC -erroff=%all
Since this structure is treated as an error in the Workshop 6 update 2 compiler, there's no way (of which I am aware) to get the compiler to compile files with the empty enum contained.
Similar Messages
-
Compile Error from Forte 6.0 Update 1
Hi,
We have the following situation:
// CORBA.h file
struct {
class Object;
typedef Object* Object_ptr;
// Our .h file
namespace OSP {
typedef IDLSEQUENCE_OSP_SetListElement SetList;
typedef IDLSEQUENCE_OSP_SetListElement_var
SetList_var;
// Our .C file
class something {
somefunction(OSP::SetList_var, CORBA::Long, \
CORBA::Object_ptr &);
// use somefunction
something si;
CORBA::Long cl;
OSP::SetList sl;
CORBA::Object_ptr so = <something>;
si.somefunction(sl, cl, so);
When compiling we get an error that says
the signature does not match:
Error: Could not find a match for\
<something>::<somefunction>( \
OSP::_IDL_SEQUENCE_OSP_SetListElement_var, \ long, CORBA::Object*)
Are typedef'ed symbols treated differently in
Forte 6 Update 1 (ANSI compliant)?
Appreciate your help!
ShyamI've tested your code on a couple different versions of Forte Developer C++, and it is indeed a bug. I've filed it as Bug ID 4632564. We're working on this issue, and I'll keep you updated on it.
-Moazam -
Link error with Forte C++ Update 2 -compat=4
We've just upgraded to the Forte 6.0 update 2 C++ compiler on
Solaris 2.6. I'm getting the following link error when linking
against libraries built with the 4.2 C++ compiler.
Undefined first referenced
symbol in file
__rtaccess(MOperation&) /home/eng/sharonc/AdCORBA/CorbaRv-dev/export/s4_56_FORTE_Debug/lib/libcorbarv.so
__rtaccess(MHash&) /home/eng/sharonc/AdCORBA/CorbaRv-dev/export/s4_56_FORTE_Debug/lib/libcorbarv.so
__rtaccess(MPublisher&) /home/eng/sharonc/AdCORBA/CorbaRv-dev/export/s4_56_FORTE_Debug/lib/libcorbarv.so
__rtaccess(MApp&)
ld: fatal: Symbol referencing errors. No output written to ./tibcorbarvb
gmake[1]: *** [tibcorbarvb] Error 1
I've made sure the required patches for the Forte compiler are installed and the system was rebooted.
I use the following flags when linking:
CC -mt -g -xildoff -pto -KPIC -D_REENTRANT -compat
-features=rtti,namespace,bool,localfor,mutable -zmuldefs
I use -features as I also link with some libraries that use features
of C++ not available in the 4.2 compiler. However the link
errors are from the library that is built with the 4.2 compiler.
Everything compiled and linked fine with Forte 6.0 Update 1.
This is something new with the update 2 compiler.
Any help is appreciated.Hi There,
I see that youare using the compiler flag -compat
with no value assigned.
This means it defaults 5.0C++ compiler comatibilty mode.
Since you mentioned in your email that you get the error message from the library built with 4.2 C++
compiler, try -compat=4 flag.
See the C++ migration guide for more information
from http://docs.sun.com
....jagruti
Developers Technical Support
Sun Microsystems Inc.
http://www.sun.com/developers/support -
When try to call Sub in Excel Objects > SheetXX after the original xlsm is modified and saved by another user in diff machine, getting an error below and seems Excel cannot identify any subs exists in Sheet.
Compile error:
Object library invalid or contains references to object definitions that could not be found
Note: it seems that this problem has been occurring After December 2014 update and still exists even after applying the fix:
http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2014/12/11/forms-controls-stop-working-after-december-2014-updates-.aspx)Hi Kwlee324,
Thanks for sharing the workaround with us. It would be very helpful for others who have the same issue.
Also I found a two useful links about the error message "Object library invalid or contains references to object definitions that could not be found":
https://support.microsoft.com/kb/2703186
http://blogs.msdn.com/b/vsod/archive/2009/06/05/visual-basic-6-controls-stop-working-after-security-advisory-960715.aspx
Hope it is helpful.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Forte compile error java source files must have a .java suffix
Hello Guru's,
I am using Forte for Java release 2.0 build 1160, and Java SDK 1.3.1.
When I try to compile a project in Forte I get the following error :
"fastjavac: java source files must have a .java suffix C:\Program"
I have looked at the source files and they do hav .java suffix!
If this is not the correct form can someone point me in the right direction. If this is a correct forum then help is very much appreciated.
Cheers...HarkiHi,
Try to compile like this:
javac yourfile.java
Hope this helps you.
Cheers.....Dinesh -
Hi, can someone tell me why this update compiles with compilation error?
CREATE OR REPLACE PROCEDURE updateName
(fname IN varchar2, newname IN varchar2)
IS
BEGIN
Select fname FROM name_tab WHERE fname = fname
UPDATE name_tab
SET newname = newname
END;
Thank you very muchMay be its getting multiple records
Try this
CREATE OR REPLACE PROCEDURE updateName
(fname IN varchar2, newname IN varchar2)
IS
BEGIN
for rec in
(Select fname FROM name_tab WHERE fname = fname)
UPDATE name_tab
SET newname = rec.fname;
end loop;
commit;
END; -
Compiler error with forte 6.2 - assertion failed in sp_interface.cc
I have a compilation error when compiling on my Ultra 10
using Forte 6.2 C compiler (5.3). Here's the line:
teds@enigma[195]% cc -xtarget=ultra3 -xarch=v8plusb -dalign -fns -fsimple=2 -ftrap=%none -xlibmil !!
cc -xtarget=ultra3 -xarch=v8plusb -dalign -fns -fsimple=2 -ftrap=%none -xlibmil -xO4 -DCMO_DEBUG_DETAIL -DUSE_DATACONN -c cmoisubs.c -o cmoisubs.o
cg: assertion failed in file ../src/ms_pipe/sp_interface.cc at line 689
cg: Internal error: constval annotation set on reg with multiple defs
cg: 1 errors
cc: cg failed for cmoisubs.c
teds@enigma[196]%
Does anyone have any ideas?
Thanks,
TedHi There,
Form the error message it seems like a bug in cg.
Try the follwoing option and see if the bug goes away.
-Qoption cg -O0 or use -Qms_pipe-off.
Please refer C user's guide for usage.
....jagruti
Developers Technical Support
Sun Microsystems, http://www.sun.com/developers/support -
Compiler errors with most recent update
I just ran the SoftwareUpdate utility and it installed QuickTime 7.1 and Apple Security Update 2006-003. Now when I compile, I get the following errors:
ld: Undefined symbols:
_LLCStyleInfoCheckForOpenTypeTables referenced from QuartzCore expected to be defined in ApplicationServices
_LLCStyleInfoGetUserRunFeatures referenced from QuartzCore expected to be defined in ApplicationServices
This error used to be "[blahblahblah] referenced from Quicktime epected to be defined in ApplicationServices" not QuartzCore. I looked at /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore and sure enough, it has a modifcation date of today.
The previous error was caused what appears to be QuickTime 7.0.4 being developed/compiled on Tiger and then distributed to Panther users like myself via Software Update.
I can't figure out whether the QuickTime update or the Security Update changed my QuartzCore, but I'm having trouble figuring out a solution to this problem.
Find a copy of the old QuartzCore framework? Figure out some way to add a dummy library that will define these symbols? Make sure Apple developers compile stuff on Panther when delivering code for Panther? I had to downgrade from Quicktime 7.0.4 to 7.0.1 to compile, which broke my iTunes 6.0.4. Now that won't even help, because the Quicktime 7.0.1 downgrade package doesn't contain QuartzCore.I can't compile anymore after the recent update on PowerMac G5 1.8GHz.
It still works on iBook G4 1GHz.
Both running Mac Os X 10.4.6
Here is an example of config.log from a failed configuration.
$ ./configure --prefix=/opt/local --infodir=${prefix}/share/info
## Platform. ##
hostname = orca.local
uname -m = Power Macintosh
uname -r = 8.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
/usr/bin/uname -p = powerpc
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
Kernel configured for a single processor only.
1 processor is physically available.
Processor type: ppc970 (PowerPC 970)
Processor active: 0
Primary memory available: 1.25 gigabytes
Default processor set: 68 tasks, 263 threads, 1 processors
Load average: 2.71, Mach factor: 0.24
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/X11R6/bin
## Core tests. ##
configure:1658: checking build system type
configure:1676: result: powerpc-apple-darwin8.6.0
configure:1684: checking host system type
configure:1698: result: powerpc-apple-darwin8.6.0
configure:1721: checking for a BSD-compatible install
configure:1776: result: /opt/local/bin/ginstall -c
configure:1787: checking whether build environment is sane
configure:1830: result: yes
configure:1887: checking for gawk
configure:1903: found /opt/local/bin/gawk
configure:1913: result: gawk
configure:1923: checking whether make sets $(MAKE)
configure:1943: result: yes
configure:2109: checking whether to enable maintainer-specific portions of Makefiles
configure:2118: result: no
User:
ABI=
CC=
CFLAGS=(unset)
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=32
cclist=gcc cc
configure:3776: gcc 2>&1 | grep xlc >/dev/null
configure:3779: $? = 1
configure:3833: checking compiler gcc -O2 -mpowerpc
Test compile:
configure:3847: gcc -O2 -mpowerpc conftest.c >&5
cc1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
configure:3850: $? = 1
failed program was:
int main () { return 0; }
configure:4856: result: no
configure:3754: cc -c conftest.c >&5
cc1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
configure:3757: $? = 1
configure:3776: cc 2>&1 | grep xlc >/dev/null
configure:3779: $? = 1
configure:3833: checking compiler cc -O2
Test compile:
configure:3847: cc -O2 conftest.c >&5
cc1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
configure:3850: $? = 1
failed program was:
int main () { return 0; }
configure:4856: result: no
configure:5094: error: could not find a working compiler, see config.log for details
PowerMac G5 1.8GHz (single processor) Mac OS X (10.4.6) 1.2GB RAM -
Compilation Error - Operation != is illegal with Forte 6 U1
when I compiled the following source code, I get the error below. I believe i am missing something basic. I ompile on Solaris 8/Forte 6Update1.
Compilation Error message:
"tmp.C", line 73: Error: The operation "PhoneBook != PhoneBook" is illegal.
1 Error(s) detected.
//Source Code
#include <map>
#include <string>
#include <iostream>
#include <utility>
struct PhoneBook
//constructors
PhoneBook(long number, std::string address) ;
PhoneBook(const PhoneBook& rPB) ;
//assignment operator
PhoneBook& operator=(const PhoneBook& rPB) ;
//destructor
~PhoneBook() ;
//comparison operators
bool operator<(const PhoneBook& rPB) ;
bool operator==(const PhoneBook& rPB) const;
//friend function
friend std::ostream& operator<<(std::ostream& os, const PhoneBook& rPB) ;
//data
long m_Number ;
std::string m_Address ;
PhoneBook::PhoneBook(long number, std::string address)
m_Number = number ;
m_Address = address ;
PhoneBook::PhoneBook(const PhoneBook& rPB)
m_Number = rPB.m_Number ;
m_Address = rPB.m_Address ;
PhoneBook::~PhoneBook()
bool PhoneBook::operator==(const PhoneBook& rPB) const
return (m_Number == rPB.m_Number) ;
PhoneBook& PhoneBook::operator=(const PhoneBook& rPB)
m_Number = rPB.m_Number ;
m_Address = rPB.m_Address ;
return *this ;
bool PhoneBook::operator<(const PhoneBook& rPB)
return (m_Number < rPB.m_Number) ;
using namespace std;
using namespace std::rel_ops;
int main()
PhoneBook p1(1234, "foobar");
PhoneBook p2(2341, "oobarf");
if (p2 != p1)
cout<<"Not equal" <<endl;
} else {
cout<<"Not equal" <<endl;
return 0;
//Source Code
thanks
easwarThis has been fixed in Sun One Studio 8, Compiler Collection.
- Rose -
Revision: 5893
Author: [email protected]
Date: 2009-04-02 16:30:46 -0700 (Thu, 02 Apr 2009)
Log Message:
Fixed compiler errors and updated to 2009 namespace w/ Spark controls (where applicable).
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/printing/examples/PrintDataGr idExample.mxml -
Compilation Error on Launch.aspx after Update from SP2 to SP4
Hi experts,
I have installed BPC 5.1 SP 2, SP 3 and also SP 4 on a Testmachine and
do not have problems with it. On the productive machine at the customer
HTTPS was not working with SP3 after upgrading, with SP2 HF1 it worked
fine. (We reinstalled the software until SP2 HF1)
Now we needed SP4 for a serious Reporting problem and I installed SP4 on
the system. Now an compilation Error displays after launching the start-page.
Server Error in /OSoft Application
Compiler Error Message: BC30456 CodePage is not a member of ASP.launch_aspx
Source File D:\BPC\WebSrvr\Web\launch.aspx
Thanks for any help.
Regards,
Ralf IssmerHello,
Unfortunately we had no changes on the web at all. Only one change was neccessary in the Web.config, we need to add culture="en-US" so that the admin components could work correctly. There are also no other applications on this server. I also had a look at the log-File OSoftSP1Install.log. SP1 in the file name was confusing me actually, but the date and time within the file was from monday afternoon, when I installed the SP4.
Thank you,
Ralf Issmer -
Compilation error while building boost 1_44_0 on Solaris (Sun Studio 10)
Hi All, I am trying to build boost version 1_44_0 on Solaris.The Solaris box has Sun Studio 10 installed.
The compiler details are
bash-2.05$ CC -V
CC: Sun C++ 5.7 2005/01/07
I am using the following command to build boost libraries
*bash-2.05$ bjam --build-dir=/export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost toolset=sun stage*
But i get the below compilation errors, not even one of the projects build
sun.compile.c++ /export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost/boo
st/bin.v2/libs/iostreams/build/sun/release/stdlib-sun-stlport/threading-multi/fi
le_descriptor.o
Notice: The Early Access serial number will expire in -7 days.
In order to purchase the product, visit http://www.sun.com/forte/buy.html
or contact your Forte Tools reseller.
"libs/iostreams/src/file_descriptor.cpp", line 352: Error: Could not find boost:
:shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
"libs/iostreams/src/file_descriptor.cpp", line 355: Error: Could not find boost:
:shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
"libs/iostreams/src/file_descriptor.cpp", line 360: Error: Could not find boost:
:shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
"libs/iostreams/src/file_descriptor.cpp", line 380: Error: Could not find boost:
:shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
"libs/iostreams/src/file_descriptor.cpp", line 385: Error: Could not find boost:
:shared_ptr<boost::iostreams::detail::file_descriptor_impl>::shared_ptr(boost::i
ostreams::detail::file_descriptor_impl*) to initialize pimpl_.
"libs/iostreams/src/file_descriptor.cpp", line 393: Error: Using static_cast to
convert from boost::iostreams::file_descriptor_flags to boost::iostreams::detail
::file_descriptor_impl::flags not allowed.
6 Error(s) detected.
"CC" -library=stlport4 -xO4 -mt -erroff=%none -KPIC -DBOOST_ALL_NO_LIB=1 -DB
OOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG -I"." -c -o
"/export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost/boost/bin.v2/libs/
iostreams/build/sun/release/stdlib-sun-stlport/threading-multi/file_descriptor.o
" "libs/iostreams/src/file_descriptor.cpp"
...failed sun.compile.c++ /export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build
-boost/boost/bin.v2/libs/iostreams/build/sun/release/stdlib-sun-stlport/threadin
g-multi/file_descriptor.o...
sun.compile.c++ /export/home/dfdev/Boost_1_44_0/boost_1_44_0/tmp/build-boost/boo
st/bin.v2/libs/iostreams/build/sun/release/stdlib-sun-stlport/threading-multi/ma
pped_file.o
Notice: The Early Access serial number will expire in -7 days.
In order to purchase the product, visit http://www.sun.com/forte/buy.html
or contact your Forte Tools reseller.
"./boost/type_traits/is_array.hpp", line 41: Error: Multiple declaration for boo
st::is_array.
"./boost/type_traits/is_array.hpp", line 42: Error: Multiple declaration for boo
st::is_array.
"./boost/type_traits/is_array.hpp", line 43: Error: Multiple declaration for boo
st::is_array.
"./boost/type_traits/is_array.hpp", line 44: Error: Multiple declaration for boo
st::is_array.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 95: Error: The type
of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1> is dependent on
another argument.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 95: Error: Partial s
pecialization parameter Tag is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 112: Error: Partial
specialization parameter F is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 172: Error: The type
of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1, boost::mpl::aux
::P2> is dependent on another argument.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 172: Error: Partial
specialization parameter Tag is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 189: Error: Partial
specialization parameter F is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 254: Error: The type
of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1, boost::mpl::aux
::P2, boost::mpl::aux::P3> is dependent on another argument.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 254: Error: Partial
specialization parameter Tag is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 271: Error: Partial
specialization parameter F is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 339: Error: The type
of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1, boost::mpl::aux
::P2, boost::mpl::aux::P3, boost::mpl::aux::P4> is dependent on another argument
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 339: Error: Partial
specialization parameter Tag is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 357: Error: Partial
specialization parameter F is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 427: Error: The type
of specialized argument boost::mpl::aux::F<boost::mpl::aux::P1, boost::mpl::aux
::P2, boost::mpl::aux::P3, boost::mpl::aux::P4, boost::mpl::aux::P5> is dependen
t on another argument.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 427: Error: Partial
specialization parameter Tag is not used in the arguments.
"./boost/mpl/aux_/preprocessed/plain/full_lambda.hpp", line 445: Error: Partial
specialization parameter F is not used in the arguments.
"libs/iostreams/src/mapped_file.cpp", line 441: Error: Could not find boost::sha
red_ptr<boost::iostreams::detail::mapped_file_impl>::shared_ptr(boost::iostreams
::detail::mapped_file_impl*) to initialize pimpl_.
20 Error(s) detected.
Am i missing something? I will appreciate your input's.
Regards,
solarisneoC++ 5.7 will not give good results building Boost.
Support for boost began with C++ 5.9 (Sun Studio 12), but you will get better results using the current release, Sun Studio 12 update 1, and better still with the upcoming release, Oracle Solaris Studio 12.2. -
Compilation Error on CC 5.3
Hi,
I,am getting the following compilation error with CC 5.3 (Forte 6 Update 2)
"/opt/SUNWspro/WS6U2/include/CC/memory.h.SUNWCCh", line 26: Error: "memchr" declaration conflicts with "std::memchr(const void*, int, unsigned)" introduced by using declaration.
we are working on porting of an application developed on window to solaris. this application
is using hash_map which CC 5.3 stl is not supporting so we are using STLPort 4.5.1 for this
with CC 5.3 iostreams.
Regards
mahidharHi,
I,am getting the following compilation error with CC 5.3 (Forte 6 Update 2)
"/opt/SUNWspro/WS6U2/include/CC/memory.h.SUNWCCh", line 26: Error: "memchr" declaration conflicts with "std::memchr(const void*, int, unsigned)" introduced by using declaration.
we are working on porting of an application developed on window to solaris. this application
is using hash_map which CC 5.3 stl is not supporting so we are using STLPort 4.5.1 for this
with CC 5.3 iostreams.
Regards
mahidhar -
I am just starting to implement a new user login authentication process wherein after prompting user for username & password, I hope to authenticate them againts our company Active Directory user data. Since I am just starting, I only have very few things
done at this point which is how I wanted to work on this so that my development environment is still at its simplest state.
I am using the following for development:
MS-Visual Studios Professional 2013 Version 12.0.30501.00 Update 2, and
MS .NET Framework Version 4.5.50938.
Here are my project solution's current items:
Web.config:
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="Login.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
Web.Debug.config:
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>
Web.Assemblies.config:
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<assemblies>
<add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral PublicKeyToken=b03f5f7f11d50a3a"/>
</assemblies>
</system.web>
</configuration>
Login.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div id="loginForm" style="height: 562px; width: 399px; margin-left: 0px" title="Login Form">
<asp:Label ID="loginPageLabel" runat="server" Font-Bold="True" Font-Names="Arial Black" Font-Size="Large" Text="Please Log In"></asp:Label>
<br />
<br />
<asp:Label ID="loginUsernameLabel" runat="server" Text="Username:"></asp:Label>
<asp:TextBox ID="loginUserNameTextBox" runat="server" OnTextChanged="loginUserNameTextBox_TextChanged" Width="213px" Wrap="False" AutoPostBack="True" TabIndex="1"></asp:TextBox>
<br />
<br />
<asp:Label ID="loginPasswordLabel" runat="server" Text="Password:"></asp:Label>
<asp:TextBox ID="loginPasswordTextBox" runat="server" OnTextChanged="loginPasswordTextBox_TextChanged" Width="212px" Wrap="False" AutoPostBack="True" TabIndex="2"></asp:TextBox>
<br />
<br />
<asp:RadioButton ID="loginUAradioButton" runat="server" Font-Bold="True" OnCheckedChanged="loginUAradioButton_CheckedChanged" Text="TUPSS Associate" AutoPostBack="True" TabIndex="3" />
<asp:RadioButton ID="loginAFradioButton" runat="server" Font-Bold="True" OnCheckedChanged="loginAFradioButton_CheckedChanged" Text="Area Franchisee" AutoPostBack="True" TabIndex="4" />
<br />
<br />
<br />
<asp:Button ID="loginSubmitButton" runat="server" Font-Bold="True" OnClick="loginSubmitButton_Click" Text="Log In" TabIndex="5" />
<asp:Button ID="loginCancelButton" runat="server" Font-Bold="True" OnClick="loginCancelButton_Click" Text="Cancel" TabIndex="6" />
<br />
<br />
<asp:Label ID="loginStatusInstructionLabel" runat="server" Text="Status/Instruction:"></asp:Label>
<br />
<asp:TextBox ID="loginStatusInstructionTextBox" runat="server" Height="230px" MaxLength="100" Rows="12" TextMode="MultiLine" Width="360px" EnableViewState="False" OnTextChanged="loginStatusInstructionTextBox_TextChanged" ReadOnly="True" TabIndex="-1"></asp:TextBox>
</div>
</form>
</body>
</html>
Login.aspx.cs:
using System;
using System.DirectoryServices;
public partial class Login : System.Web.UI.Page
private string uName; // user-entered username
private string pWord; // user-entered password
private int loginLoadCycles; // just keeping track of how many times Page_Load is called
protected void Page_Load(object sender, EventArgs e)
if (this.loginUserNameTextBox.Text == String.Empty &&
this.loginPasswordTextBox.Text == String.Empty &&
this.loginUAradioButton.Checked == false &&
this.loginAFradioButton.Checked == false)
this.loginInit();
this.setLoginVisibilityAndFocus();
this.loginLoadCycles += 1;
private void loginInit()
this.uName = String.Empty;
this.pWord = String.Empty;
this.loginLoadCycles = 0;
private void setLoginVisibilityAndFocus()
// Decide on whether or not the Login submit & cancel buttons should be enabled or not
if ( this.loginUserNameTextBox.Text == String.Empty ||
(this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == false) )
this.loginSubmitButton.Enabled = false;
this.loginCancelButton.Enabled = false;
this.loginStatusInstructionTextBox.Text = "Please specify if you are a TUPSS Associate or an Area Franchisee by checking either the 'TUPSS Associate' or 'Area Franchisee' checkbox.";
else
this.loginSubmitButton.Enabled = true;
this.loginCancelButton.Enabled = true;
if (this.loginPasswordTextBox.Text == String.Empty)
this.loginStatusInstructionTextBox.Text = "Now that you have entered your username & type, please enter your password.";
else
this.loginStatusInstructionTextBox.Text = "When you are ready, please select either the Log In button to login, or the Cancel button to abort.";
if (this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == false)
this.SetFocus(this.loginUAradioButton);
else if (this.loginUserNameTextBox.Text == String.Empty)
this.SetFocus(this.loginUserNameTextBox);
else if (this.loginPasswordTextBox.Text == String.Empty)
this.SetFocus(this.loginPasswordTextBox);
else
this.SetFocus(this.loginSubmitButton);
protected void loginUserNameTextBox_TextChanged(object sender, EventArgs e)
protected void loginPasswordTextBox_TextChanged(object sender, EventArgs e)
// For some reason, after specifying that the password entry box's textmode to 'Password' setting,
// the UI's password textbox is emptied
this.loginStatusInstructionTextBox.Text = "NOTICE:\nThis application is still under development.\n\n" +
"This is why the password you entered is visible. Once this portion of the application is ready, it will be masked.\n\n" +
"Also, still need to figure out why when changing this to Password entry mode to mask its entered data, password is getting reset.";
protected void loginSubmitButton_Click(object sender, EventArgs e)
this.loginLoadCycles = 0;
this.uName = this.loginUserNameTextBox.Text;
this.pWord = this.loginPasswordTextBox.Text;
if (this.loginUAradioButton.Checked == true && this.loginAFradioButton.Checked == false)
this.loginLADPauthenticate('U'); // authenticate UPS Associates against UPS Corp's Active Directory
else if (this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == true)
this.loginLADPauthenticate('A'); // authenticate Area Franchisees against UPS Store's iNet Active Directory
else
// set colors to show that this is an error instead of a status message or instruction
this.loginStatusInstructionTextBox.Text = "ERROR: Cannot log in without specifying if you are an UPS Associate or an Area Franchisee!";
protected void loginCancelButton_Click(object sender, EventArgs e)
this.loginStatusInstructionTextBox.Text = "You have selected to cancel from logging in...";
// Still need to plan what to do when user cancels out of logging in. For now, just initialize class attributes
this.loginInit();
protected void loginUAradioButton_CheckedChanged(object sender, EventArgs e)
String msg = String.Empty;
if (this.loginUAradioButton.Checked == true)
this.loginAFradioButton.Checked = false;
msg = "Thanks for specifying that you are a TUPSS Associate. ";
if (this.loginUserNameTextBox.Text == String.Empty)
msg += "Now please specify your username.";
else if (this.loginPasswordTextBox.Text == String.Empty)
msg += "Now please enter your password.";
this.loginStatusInstructionTextBox.Text = msg;
protected void loginAFradioButton_CheckedChanged(object sender, EventArgs e)
String msg = String.Empty;
if (this.loginAFradioButton.Checked == true)
this.loginUAradioButton.Checked = false;
msg = "Thanks for specifying that you are an Area Franchisee. ";
if (this.loginUserNameTextBox.Text == String.Empty)
msg += "Now please specify your username.";
else if (this.loginPasswordTextBox.Text == String.Empty)
msg += "Now please enter your password.";
this.loginStatusInstructionTextBox.Text = msg;
private void loginLADPauthenticate(char whichActiveDirectory)
String msg = "Authenticating user '" + this.uName + "' with password '" + this.pWord + "' against ";
if (whichActiveDirectory == 'U')
msg += "UPS Corp's Active Directory...";
else if (whichActiveDirectory == 'A')
msg += "The UPS Store's Franchisee Active Directory...";
msg += "\n\nNOTICE:\nThis is still under development.\n\nAt this point, this application is supposed to do something else now but is not yet ready.";
this.loginStatusInstructionTextBox.Text = msg;
this.loginStatusInstructionTextBox.AutoPostBack = true;
// Authenticate using LDAP
protected void loginStatusInstructionTextBox_TextChanged(object sender, EventArgs e)
I confirmed that I have System.DirectoryServices.dll located in
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\v4.0_4.0.0.0__b03f5f7f11d50a3a\ folder and that I as well as System have read as well as read&execute privileges
not only to all folders in its path but also to the DLL file itself.
I would appreciate any help in trying to resolve this compilation error so that I can proceed with implementing LDAP features for this endeavor.
Thanks so much,
hguico @ The UPS StoreHi,
For web application problem, please post your thread in
ASP.NET forum.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and
makes it easier for other visitors to find the resolution later. -
Hi!
I can't run LV, I get everytime thins error:
Compiler error. Report this problem to ni tech support.
copy cvt str/pict/tag, csrc=0x40
~~~~
Regards
Sarah
LV 7.1.1Dear Sarah,
have you updated to LV 7.1.1 or does your problem occur in LV 7.1? I haven't updated to lv7.1.1 by now and we are using the english version.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Maybe you are looking for
-
Hey everybody, Logic Pro X user here, have a late 2011 Macbook Pro, upgraded to 16gb of ram, 2.8ghz intel core i7, running latest version of Mavericks and more recently on a separate partition I tried Yosemite with a clean install of only Logic Pro
-
my kids enter wronge passwords several times until the ipad says"connect to iTune" but the ipad does not appear on the iTune.I know the correct password.
-
My Mac OS X 10.9.2 is unable to read any disc since I updated the operating system to Marverick a few months back. How can i resolve this problem because I need to retrieve very important information on my discs. Help! Thank you... paul
-
Does Cisco NAC Appliance deployment require CS-ACS?
I've gone through all the partner training on the Cisco NAC appliance and mgmt station, and CiscoSecure ACS 4.0+ is mentioned just about everywhere in the user verification steps. If a customer does not have CSACS, or AAA for that matter (say in just
-
Why am I unable to move icons around on desktop? How do I release these?
Why am I unable to move icons around on desktop? How do I release these?