Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

c++ - Cannot link streams code with gcc -


i have problem compiling following code:

// writing on text file #include <iostream> #include <fstream> using namespace std;  int main () {   ofstream myfile ("example.txt");   if (myfile.is_open())   {     myfile << "this line.\n";     myfile << "this line.\n";     myfile.close();   }   else cout << "unable open file";   return 0; } 

to compile:

g++ -c -o2 -wall -wno-unused -fexceptions  -i. -i../../../stub -d_reentrant -d_thread_safe  -i.  -o t.o ./test.cc  g++ -o t -o2 -wall -wno-unused -fexceptions -wl,-brtl -wl,-blibpath:/lib:/usr/lib t.o -lpthreads 

the compile gives warnings:

ld: 0711-224 warning: duplicate symbol: .__divdi3 ld: 0711-224 warning: duplicate symbol: .__moddi3 ld: 0711-224 warning: duplicate symbol: .__udivdi3 ld: 0711-224 warning: duplicate symbol: .__umoddi3 ld: 0711-224 warning: duplicate symbol: .__udivmoddi4 ld: 0711-345 use -bloadmap or -bnoquiet option obtain more information. 

the resulting binary appears execute ok:

$ ./t $ echo $? 0 

the output file created empty !?!

i very grateful pointers problem might be.

libpath set incorrectly, causing problem. correct setting should

libpath=/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -