GCC Problem July 21, 2008
Posted by genetical in Techincal Support.Tags: c, compile error, external, external reference, gcc
add a comment
It seems that GCC is broken when it comes to trying to compile source code that contains external references to object files/DLL’s/etc. When compiling, it says, “gcc: installation problem, cannot exec ‘cc1plus’” No such file or directory“. Now I have tried reinstalling GCC and it still seems to be broken. Maybe someone else has a clue as to how we can fix this? To see the code that generates this error go on Sylow at “/home/steve/chris/redo/” and run the command “sudo gcc -c exRef.C“. The code will compile as C++ source if you modify the code by uncommenting the “extern “C” ” stuff and run the command “sudo g++ -c exRef.C” but we need to be able to do this in C in order to use the hello2.C program we have.
-Chris
Does Sylow have a virus? June 28, 2008
Posted by genetical in Techincal Support.2 comments
I have been getting odd messages from time to time when I issue a command with sudo, such as “Permission denied due to bad karma, you must use Windows don’t you?” and “Emailing password to su-students@southwestern.edu.” It’s got me worried now…
-Chris
How to: Building PC Binaries for Boinc (C/C++) June 19, 2008
Posted by genetical in Techincal Support, boinc.Tags: binary, boinc, build, c, glaux, pc
1 comment so far
This first paragraph’s steps are necessary in full if you have no previously installed libraries, otherwise, only some of these steps may be necessary based on your computer’s preexisting libraries. After obtaining and installing Visual Studio 9.0 Professional Edition from Microsoft’s website (90-day trial recommended, do a full install that includes the .NET 3.5 Framework), I had to download Microsoft’s latest SDK here, as well as the Feature Pack, followed by a rollback to Microsoft’s old SDK, found here. Even at this point, two more header files must be downloaded and added to Visual Studio’s “./VC/include/” folder: “version.h” and “config.h“. Just google them and copy the code into notepad, saving them with their respective file names (save as “All Files” and not as “*.txt“!) in the aforementioned include folder.
Using an SVN client, such as Tortoise, I downloaded both the” /boinc” and “/boinc_samples” repositories located at “http://boinc.berkeley.edu/svn/trunk/“. Make sure both folders share the same parent directory.
This site, which describes how to build an app for Boinc, recommends you also install Microsoft’s debugging tools, here.
Once all of this is completed, go to “./boinc_samples/win_build/” and open “samples“. All projects must be updated to exclude the “glaux.lib” library and you must append “kernel32.lib user32.lib gdi32.lib advapi32.lib” to the list of additional dependencies found in Project->References->Linker->Input. This is because the newest version of Microsoft’s SDK deprecated the glaux library into 4 separate libraries – apparently it’s more stable now.
One other change must be made:in line 191 of “stackwalker_win.cpp“, which can be found in the “libboinc” project under “source files”, change “LPSTR” to “PCSTR” so that the line reads:
BOOL CALLBACK SymEnumerateModulesProc(PCSTR /* ModuleName */, DWORD64 BaseOfDll, PVOID /* UserContext */)
Now you should be ready to build the entire solution. You can select whether you want to build debug or release versions for either 32- or 64-bit platforms, or you can do a batch build which allows you to do multiple builds. Once this is done the binaries are made but you must create a “job.xml” file before you can run your executable, otherwise it will not read your input file properly.
The “job.xml” template as well and instructions for it can be found here. Be sure to have this file in the same directory as your binary and input file.
-Chris
PC Binaries June 16, 2008
Posted by genetical in Techincal Support.Tags: binary, c, fortran, pc, test
3 comments
I am trying to compile Dr. Alexander’s Fortran test file against a PC kernel so we can do a test run with BOINC on some PC’s later this week. I seem to be missing a bunch of libraries, perhaps because of the compiler I got. Does anyone know a good place to get a vast C/C++ library? I just recently downloaded a 900MB SDK from Microsoft but I am still missing quite a few libraries apparently. They don’t seem to be related to BOINC because I am missing windows.h and things like that. I’ve tried downloading directly the libraries I need but every time I add one it finds five more that I am missing. I’m not at my laptop right now with the compiler but I’ll post up everything I am missing in a bit.
-Chris
hlep! June 9, 2008
Posted by genetical in Techincal Support.2 comments
Did sylow crash? I was using it through secure shell and suddenly it’s frozen.
-Chris