|
|
g++ should be able to find libc and libm (those are the two that you're having issues with). Are you sure Solaris supports static linking? I've just tried the same test on OS X (10.5.6) and, while gcc accepts -static, not all static libraries are present.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: g++ should be able to find libc and libm
You mean that I need add the path include the libc&libm into system environment? When I use -lm parameter it works, isn't -lm says g++ compiler is using the math library compiling code, namely the libm? But with a -static will occur that error.I confused that a little.
Stuart Dootson wrote: Are you sure Solaris supports static linking
I think the -static is belong to g++ and independence of platform(solaris/fedora..), but I am too new one to confirm this. I guess it due to a library g++ can't find.
The key is that I try writting a program about online judge program(some thing like ACM), it did not work well without the -static parameter while compiling period. I have to compile like this: g++ %s/%d.cpp -o %s/%d -ansi -fno-asm -Wall -lm -DONLINE_JUDGE --static 2> %s/%d.txt
I am very need your suggestions, thanks for your time!
no cross no crown.
|
|
|
|
|
Sorry, I google it, finally find the static linking on Solaris 10 was removed.
Now, I need to think changing to a linux server.
Thank you sir.
no cross no crown.
|
|
|
|
|
David Wong RZ wrote: Sorry, I google it, finally find the static linking on Solaris 10 was removed
No worries - glad you found an explanation for your problem!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
How to create window with Transparency level starts from 0 to 100%?
Left side transparency level = 0%
Right side transparency level = 100%
Is it possible to use AlphaBlend() API.
Is it possible to use GradientFill() method of CDC.
pls let me know with sample
|
|
|
|
|
|
Thanks 4 ur help.
Ur link is helpful, but it uses GDIplus and it is not my requirement.
I need to use only MFC.
Anyway it will b useful if u explain the method Refresh() of class CImgBaseDialog in more detailed manner.
I understood rest of the stuffs like hooking, unhooking, etc.,
Thanks n advance!!!
|
|
|
|
|
The sample uses the GDI+ to load PNG / TIFF image.
U can modify the code to use CXimage http://www.codeproject.com/KB/graphics/cximage.aspx[^] and normal GDI
The Refresh() method in CImgBaseDialog works as the following:
Paint the background first.
Enumerate all child controls, and for each of them, send WM_PRINT to get the captured bitmap, paint at the same place of the fake window.
Finally, caculate the position of caret, draw the caret.
----------------------------------------------------------------
English is not my native language
|
|
|
|
|
Hi All
Suppose i've a VC+ project. how ll i know wheather its a SDi or MDI or dailogbased project?
Regards
Phillip
Regards
Phillip
|
|
|
|
|
Cool_Phillip wrote: how ll i know wheather its a SDi or MDI or dailogbased project?
By looking at it?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
DavidCrow wrote: By looking at it?
Hi
thanx for reply.
But how come i'll know the type by looking at code. my project doesn't ve any CFramewnd, or CDoc.
Regards
Phillip
|
|
|
|
|
Cool_Phillip wrote: But how come i'll know the type by looking at code.
Look at what is in the InitInstance() method.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thank you very much.
Regards
Phillip
|
|
|
|
|
Try to create each one of the 3 types project, look at what is difference, the main difference is CMainFrame
|
|
|
|
|
Thank you very much.
Regards
Phillip
|
|
|
|
|
You can use a mirror. Just keep it in front your monitor, stand behind your monitor and the mirron will reveal what kinda application is it. Or you can use a simple see-through glass and sit in the usual place. That's how I do it every time.
As our mate just said above, create 3 different apps of each type & you will know.
Hints:
1. Dialog applications : Calculator
2. SDI : Mspaint, Notepad
3. MDI : MSWORD, Excel.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I want use hook to catch net data passed by local machine,how can I do?
|
|
|
|
|
1, The best way is sniffer, download the WinPcap http://www.winpcap.org/[^], and look at the samples.
2. Hoot the network api, such as send sendto etc. download M$ detours , look into the sample which hooks the network api.
|
|
|
|
|
Or Etherreal[^]
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Hai all
Is it possible to convert a 32 bit driver application to 64 bit compatible using visual studio 08.
If yes what are the requirements which we should take care?
Advance thanks for all the answers forwarded...
Santo
|
|
|
|
|
Windows drivers are built using the Device Driver Kit which is a free download.
It is called as Windows Driver Kit (WDK).
Download and install the latest verion.
Then select the 64-bit environment from which you can rebuild your driver.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks
let me try it out...
|
|
|
|
|
Hi,
I need some help on how to send emails using VC++ code..? is there any API available for sending emails..?
If so please kindly let me know..
Any help will be appriciated...
Thanks in advance...
|
|
|
|
|
MAPI[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|