Programming :: Cannot Seem To Find Any Good Documentation On Role Of Flags
Mar 16, 2010
I cannot seem to find any good documentation on the role of flags -Bdynamic and -Bstatic in g++. The man pages are not very helpful either.I found an example on the web:"gcc object1.o object2.o -Wl,-Bstatic -lapplejuice -Wl,-Bdynamic -lorangejuice -o binary".According to which -Bstatic instructs the linker to statically link
the applejuice library and to dynamically link the orangejuice library. If orangejuice uses the applejuice library anywhere however,the applejuice is also linked dynamically. Is it correct to assume that this is correct and describes the true functionality of those two flags in gcc? (ie: Bstatic and Bdynamic are used for mixing static and shared libraries during linking)Is it correct to assume that the same applies to g++ as well?
I was wondering if you could help me find a good documentation about expect, I have searched all the web but with no luck. I need to build a complex script that I need at work to automatically connect to 50 pc`s (with linux based os) and execute 10 or more script with the output into a text file and the email the file to my email address.
I'm trying to cross compile something and it requires a recent version of Boost. I'm using squeeze and gnome and my updates are all up to date. I could not get through the 'configure' stage with Boost dev packages from the debian repository, so I went to the Boost web site. I thought the package requires boost 1.44 or later, so I downloaded 1.45.0 from the site and proceeded to build and install it. I think I installed it right, using /usr/local/ as the prefix. Back at my main project, I try to configure my build and I get some of the following text and then the configure stops.
Code:
checking for Boost's header version... 1_45 checking for the toolset name used by Boost for arm-none-linux-gnueabi-g++... configure: WARNING: could not figure out which toolset name to use for arm-none-linux-gnueabi-g++ checking boost/date_time/posix_time/posix_time.hpp usability... yes
[code]....
I cannot get past the 'date_time' thing. Does anyone know what is meant by 'flags to link with Boost date_time' ?
I just unpacked the latest version of Thunderbird. Now there is a new Thunderbird folder in my folder named Downloads. I can run Thunderbird by using the provided script. Should this folder be moved? I was unable to find anything in any of the documentation as to where this folder should be located.
I've been attempting to install GEANT4 (a physics simulation program thing) however, I keep running into an issue. I've attempted to find answers within GEANT Documentation, but this seems to be experienced often by users, but not addressed within their documentation. Anyways, when I try to build it says I have installation errors, and the only one I can find within the output is this:
Code: /usr/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status make[2]: *** [/home/zach/geant4/geant4_9_4_b01/lib/Linux-g++/libG4FR.so] Error 1 Creating shared library /home/zach/geant4/geant4_9_4_b01/lib/Linux-g++/libG4visHepRep.so ... /usr/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status
I am using LibreOffice under Ubuntu 10.10 and Windows XP, and trying to record some macros. I can find no documentation with for recording macros. There are some forum threads of individuals, but the replies all recommend external programs. LibreOffice has its own macro recorder, doesn't it? It is on the Tools menu, as in previous versions of OpenOffice, but "record macro" is blanked out. Is this because LibreOffice 3 can't do macros? I have no idea why an external program should be needed.
I found that Kate comes with a plugin called "Kate Snippets", and it seems very nice.It lets you add commands into the snippet and even define QtScript (similar to JavaScript) functions to do things.But there is no manual or documentation that I can find.aybe someone knows more about this?
I'm migrating a custom RHEL5.5 install DVD to RHEL6 and am having some trouble with the Kickstart script. All things work great with 5.5 but if just copying it over to use with version 6 some things don't work. For example creating a user, doesn't create his home directory, neither automatically nor when using --homedir option. Another example when creating logical volumes I used to use the --percent option with RHEL5.5 which worked perfectly but for some reason crashes under 6. When I set the size to fixed then it works. Does anyone have any idea where I can find up to date documentation for kickstart configuration under RHEL6?
I'd like to create a target named "debug" or something similar which will use some special optimization flags useful when debugging (for example -ggdb). At the moment my makefile is neat (which I like) and looks like
I have written a regular expression (tested in regexpal and regextester alpha something) with which I want to replace something like code...
but it only matches functions which occupy one line only, despite my tests showing multiple line matching in javascript testers online and using the m and s flags (which should make it multi line no?)
I am writing a C program which is contains Mysql header files and APIs but it can not compile it and its error is : Quote: undefined reference to
to all of Mysql APIs that I included their headers .In command line I compile my source like this with no problem: Quote: gcc test.c -Wall -o test -lz `mysql_config --cflags --include --libs`
I think code block does not have bold italic part of this command. How can I add this to code block to compile my project or those project that contains Mysql APIs (just my project not all of defined projects that has no relation to mysql APIs)with this gcc flags.
I am writing a C program which is contains Mysql header files and APIs but it can not compile it and its error is :
Quote:
undefined reference to
to all of Mysql APIs that I included their headers .In command line I compile my source like this with no problem:
Quote:
gcc test.c -Wall -o test -lz `mysql_config --cflags --include --libs`
I think code block does not have bold italic part of this command. How can I add this to code block to compile my project or those project that contains Mysql APIs (just my project not all of defined projects that has no relation to mysql APIs)with this gcc flags.
I am looking for a similar script like sydi-linux.py that will work with a Debian box. I want to document my server setup & just looking for an easier way to do it since I have to do this x12.Or do I just need to try & make this script work and shut up about it?
I want to do some experimentation with GUI programming. What mostly interests me is how the toolkits actually work (what are the drawing mechanisms, how it communicates with X, etc.) and how the window managers work. I know it's quite a lot but I don't plan on developing the next best DE/Toolkit/Window Manager, just to play with API, mostly to learn. It seems that there is a shortage of documentation on this topics, I'm trying to find anything for 2 days now with no result.
I'm using ubuntu 9.04; I have a large project in windows that I want to "port" it in linux. It uses IPC mechanism "Shared memory" and also "Critical Section" APIs in windows, but unfortunately I have no good reference to change these windows APIs to their equivalent in linux?
Is there a comprehensive documentation or reference for this issues? I mean a table containing the equivalent APIs or systemcalls in windows and linux! For example, what's an alternative for the "InitializeCriticalSection" API in linux? Or an alternative for "CRITICAL_SECTION" structure? Or even an alternative for "RegOpenKeyEx", although we don't have registry in linux!!
I'm having issues trying to find a good viewer for my pdf files. The only one I've found that works very well is the Acrobat Reader port for Linux. Even this isn't as good as its equivalent in Windows. I tried xpdf and some others, but found a lot of functionality lacking, such as the basic ability to get the hand tool for scrolling the page.
yeah buddy this kubuntu linux rocks socks, only issue is i can not find a good video creator program,could someone I would like to make a video of some pictures i have.
I'm trying to download Wine so I can start installing some of my Win. compatible programs but im having trouble finding a solid download. Any suggestions out there???
Any opinions on which of the PCMCIA wireless cards work the best out of the box? I currently have a USB wireless adapter but want to get rid of it and use my PCI slot on the laptop. I am currently running lucid. I would rather not have to mess around with NDISWRAPPER again, something that has a native linux driver would be great.
I apologize for this being somewhat vague but it happened several months ago and I don't currently have access to the laptop. But here goes anyway:Perfectly working dual-boot system with XP and Ubuntu 8.04. I also think I had installed a different boot loader (or maybe just a GRUB editor?). This was several years ago. I upgraded Ubuntu to 10.04 and I remember it asking me if I wanted to overwrite probably menu.lst. I said no when I should have said yes and now XP still loads fine but neither version of Ubuntu will load at all. I wish I had access to the machine so I could say what the error message is, but I don't and I forget.So I expect that menu.lst is just pointing to the wrong place but I'm not sure how to fix it. Can I boot from a live CD and edit menu.lst? Just thought about that.No biggie but I cannot screw up the XP aspect since that's major drama.
Does anyone knows about some good c++ tutorial ? I don't wanna something for absolute beginners,I need something for advanced topics, tips...Something you liked and helped you a lot I prefer Internet tutorials/e-books but "real" book should be good too.
We have to (re)write a bunch of scripts to download files from remote ftp servers, where we won't know the names beforehand; move the files to an archive folder on the FTP server; copy the files to the correct servers on our LAN; and log the file information in Oracle.Our current scripts are for a windows product called ScriptFTP that provides a nice little language. It does everything except the logging, but we're wanting to get rid of Windows.
I have recently been given the job of maintaining the code, and I'm looking for a good language for simple, robust ftp scripts that will work on Linux. We have some customers with remarkably unreliable FTP servers. If necessary, I can write another program to handle the logging to Oracle. I'm usually a C++ developer, so a similar syntax is a bonus. I also want to be able to hand this over to an entry-level programmer later.
So far, I'm intrigued by PHP, but I've hardly had a chance to look at it for any scripting. I like the idea of being able to loop through the files individually and even be able to skip over anything that looks like it's currently being written (either based on the file name or date/time). I've thought about writing something in C++ that would take a simple config file instead of a full blown script. However, I don't want the maintenance, unless someone writes a quality FTP library that is inexpensive (hopefully free) for commercial use.