Notices

Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

Can someone build this very small C++ file, I just can't get it to work

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 02-17-09, 02:21 PM Thread Starter   #1
mad_pc_man
Member



Join Date: Nov 2004
Location: Nuneaton, England

 
Can someone build this very small C++ file, I just can't get it to work


Hi,
I have a very small C++ program I'd really like to use, its a solver program for hexic hd. The program can be found at http://www.paulbanks.org/download/fi...solver.0.1.tgz

It's only 11KB.

I have tried myself, I downloaded MS C++ Express but I just can't seem to get it to work.

A simple build and attachment to a post would be hugely appreciated, or an email with attachment to flyingsouth at gmail dot com

__________________
ASUS P8P67 PRO --- Intel Core i7 2600K @ 4.7GHz --- 4GB DDR3 1600MHz --- XFX Radeon HD6970
450W Corsair VX450 PSU
mad_pc_man is offline   QUOTE Thanks
Old 02-18-09, 11:57 AM   #2
iLoki
Member

 
iLoki's Avatar 

Join Date: Dec 2008

 
well.. if its a .tgz chances are it came from a linux/unix developer? Try devC++

http://www.bloodshed.net/devcpp.html

my bet is that it was written to be compiled with GCC or something along those lines, and DevC++ uses MinGW, which is a port of GCC to windows.

EDIT: You may want to use something like CygWin to run the makefile and build the application. http://www.cygwin.com/

__________________
Intel i7 920 @ 4.0ghz 1.376v 24/7 190x21
SLI e-Geforce GTX285
Foxconn Bloodrage
6GB OCZ XMP Ready DDR3 1600 @ 1554 8-8-8-24-1T
Corsair hx1000w
1TB Hard Drive
iLoki is offline   QUOTE Thanks
Old 02-18-09, 03:43 PM Thread Starter   #3
mad_pc_man
Member



Join Date: Nov 2004
Location: Nuneaton, England

 
Can you/someone not just build it for me? It won't take two ticks I'm sure

__________________
ASUS P8P67 PRO --- Intel Core i7 2600K @ 4.7GHz --- 4GB DDR3 1600MHz --- XFX Radeon HD6970
450W Corsair VX450 PSU
mad_pc_man is offline   QUOTE Thanks
Old 02-18-09, 03:51 PM   #4
iLoki
Member

 
iLoki's Avatar 

Join Date: Dec 2008

 
well I'm at work and don't have any of that stuff with me lol
I'll take a crack at it later and see how it goes.

__________________
Intel i7 920 @ 4.0ghz 1.376v 24/7 190x21
SLI e-Geforce GTX285
Foxconn Bloodrage
6GB OCZ XMP Ready DDR3 1600 @ 1554 8-8-8-24-1T
Corsair hx1000w
1TB Hard Drive
iLoki is offline   QUOTE Thanks
Old 02-18-09, 03:54 PM Thread Starter   #5
mad_pc_man
Member



Join Date: Nov 2004
Location: Nuneaton, England

 
Thanks so much, I have just tried DevC++ and I couldn't get it to work, but then again I've never even seen source code before now.

If you could get it to work that would be awesome thanks.

__________________
ASUS P8P67 PRO --- Intel Core i7 2600K @ 4.7GHz --- 4GB DDR3 1600MHz --- XFX Radeon HD6970
450W Corsair VX450 PSU
mad_pc_man is offline   QUOTE Thanks
Old 02-18-09, 06:03 PM   #6
ShadowPho
Member

 
ShadowPho's Avatar 

Join Date: Jun 2005
Location: I am in your stack, SUBbing your registers!

 
Would you like it built for windows or linux?

__________________
"Take only that which you can give"
Need Help? IM me! I want to help the OC community!

MainComputer:
E6400@2.69-4.0 gig RAM-8800GT
ASUS P5N-E SLI

ShadowPho is offline Heatware Profile   QUOTE Thanks
Old 02-19-09, 05:24 AM Thread Starter   #7
mad_pc_man
Member



Join Date: Nov 2004
Location: Nuneaton, England

 
Windows please

__________________
ASUS P8P67 PRO --- Intel Core i7 2600K @ 4.7GHz --- 4GB DDR3 1600MHz --- XFX Radeon HD6970
450W Corsair VX450 PSU
mad_pc_man is offline   QUOTE Thanks
Old 02-22-09, 09:49 AM Thread Starter   #8
mad_pc_man
Member



Join Date: Nov 2004
Location: Nuneaton, England

 
bump?

__________________
ASUS P8P67 PRO --- Intel Core i7 2600K @ 4.7GHz --- 4GB DDR3 1600MHz --- XFX Radeon HD6970
450W Corsair VX450 PSU
mad_pc_man is offline   QUOTE Thanks
Old 02-22-09, 12:16 PM   #9
Bjm2587
Member



Join Date: Aug 2008

 
Are you using vista? I had a hell of a time trying to get dev to work on vista but it's possible.
Bjm2587 is offline   QUOTE Thanks
Old 02-22-09, 11:22 PM   #10
teddythetwig
Member

 
teddythetwig's Avatar 

Join Date: Feb 2009
Location: MD

 
Not sure how to attach a file to a post put I'm working on it now..

__________________
Antec 900
Q9550 @ 4.0
4Gb OCZ 5-5-5-15 DDR2 1066
OCZ SilentXStream 700W
ASUS ATI Radeon HD4850
TPower I45
WC'd: Apogee GTZ, MCP350,MCR220,MCRESv2

Friend me on Steam: Teddythetwig
teddythetwig is offline   QUOTE Thanks
Old 02-23-09, 12:04 AM   #11
Jayws
Member

 
Jayws's Avatar 

Join Date: Jul 2007
Location: C:\

 
Not sure what the deal is here, I looked at the makefile and it uses a command that I don't recognize. This isn't something that I've been able to compile in windows, I'll give it a try on my linux box.

Code:
all:
	g++ -o hexicsolve-test -O2 main.cpp
	swig  -c++ -python hexicsolve.i
	g++ -O2 -fpic -c hexicsolve_wrap.cxx `python2.5-config --includes`
	g++ -O2 -shared hexicsolve_wrap.o -o _hexicsolve.so

__________________
Heat
Asus P8P67
Intel i5 2500k @ 4.0GHz
30c Idle / 50c Full Load w/ TRUE U120
8GB DDR3-1866 -- 9-10-9-27-1T
MSI GTX 460 1GB
2TB Total HD / Antec 902 / Corsair 550VX
Jayws is offline   QUOTE Thanks
Old 02-23-09, 01:33 AM   #12
dyst0pia
Member



Join Date: Oct 2007

 
swig there is basically making python code out of C++. Unfortunately, that also means you'll need a python interpreter after you get this compiled; the end result are some object files compiled from the C++, plus a python file that needs to be interpreted to actually run the program. To be honest, it may be easier to just get Cygwin, compile it yourself, and use Cygwin to run it.

__________________
abit IP35 Pro
Intel Q6600 G0 @ 3.15 GHz (9 x 350 MHz), 1.262V
Zalman CNPS9500LED
4 x 2GB OCZ2N800SR4GK @ 875 MHz, 5-5-5-15, 2.2V
Intel X25-M Gen2 80GB SSD
3 x Seagate Barracuda 7200.10 SATA 3.0Gb/s 250GB, RAID 0
EVGA GeForce GTX 285 @ 720 MHz core, 1639 MHz shader, 2772 MHz memory
Thermaltake Toughpower W0106RU 700W
Thermaltake VA3000BWA
Microsoft Windows 7 Ultimate x64
dyst0pia is offline   QUOTE Thanks
Old 02-23-09, 03:21 AM   #13
ShadowPho
Member

 
ShadowPho's Avatar 

Join Date: Jun 2005
Location: I am in your stack, SUBbing your registers!

 
Done. The C code is completely independent of the (seems GUI?) python code. This C code was compiled in dev-cpp under mingw g++?. Dunno the version. Sorry I am a bit late.
Attached Files
File Type: zip board.zip (247.8 KB, 382 views)

__________________
"Take only that which you can give"
Need Help? IM me! I want to help the OC community!

MainComputer:
E6400@2.69-4.0 gig RAM-8800GT
ASUS P5N-E SLI

ShadowPho is offline Heatware Profile   QUOTE Thanks
Old 02-24-09, 02:06 PM Thread Starter   #14
mad_pc_man
Member



Join Date: Nov 2004
Location: Nuneaton, England

 
Thanks so so much it is hugely appreciated

__________________
ASUS P8P67 PRO --- Intel Core i7 2600K @ 4.7GHz --- 4GB DDR3 1600MHz --- XFX Radeon HD6970
450W Corsair VX450 PSU
mad_pc_man is offline   QUOTE Thanks
Old 02-25-09, 01:23 AM   #15
ShadowPho
Member

 
ShadowPho's Avatar 

Join Date: Jun 2005
Location: I am in your stack, SUBbing your registers!

 
Quote:
Originally Posted by mad_pc_man View Post
Thanks so so much it is hugely appreciated
No problem.
It'd be faster under linux. "g++ main.cpp"

__________________
"Take only that which you can give"
Need Help? IM me! I want to help the OC community!

MainComputer:
E6400@2.69-4.0 gig RAM-8800GT
ASUS P5N-E SLI

ShadowPho is offline Heatware Profile   QUOTE Thanks
Old 02-25-09, 07:38 PM   #16
dyst0pia
Member



Join Date: Oct 2007

 
Quote:
Originally Posted by ShadowPho View Post
No problem.
It'd be faster under linux. "g++ main.cpp"
You wouldn't even have to figure that out on linux either (which file to compile, that is). So... even faster. "make"

__________________
abit IP35 Pro
Intel Q6600 G0 @ 3.15 GHz (9 x 350 MHz), 1.262V
Zalman CNPS9500LED
4 x 2GB OCZ2N800SR4GK @ 875 MHz, 5-5-5-15, 2.2V
Intel X25-M Gen2 80GB SSD
3 x Seagate Barracuda 7200.10 SATA 3.0Gb/s 250GB, RAID 0
EVGA GeForce GTX 285 @ 720 MHz core, 1639 MHz shader, 2772 MHz memory
Thermaltake Toughpower W0106RU 700W
Thermaltake VA3000BWA
Microsoft Windows 7 Ultimate x64
dyst0pia is offline   QUOTE Thanks
Old 08-31-12, 04:02 AM   #17
aliylum
New Member



Join Date: Aug 2012

 
Hey guys,

Know this is an olddd topic but curious to see if anybody has used this board solver programme and how well it works?

Looking at the release notes for the programme, it says:
  • It will only look three moves deep. (Any more takes considerably longer and is of questionable value anyway - at least in this implementation)
  • The game engine is simplified. It doesn't do special things with special pieces. (Stars are only used for scoring) If you manage to make any other strange pieces (like shells, bombs or pearls) it doesn't deal with them.

Does this help in forming black pearls?
aliylum is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Programming Tips and Tricks
Programming Tips and Tricks
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 04:20 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?