[ale] VC++ to regular C++

Justin Simms justin.simms at gmail.com
Sun Sep 19 14:16:54 EDT 2010


Yes, but it is not so bad. You can do the following:

1. create a new directory which will hold your source files
2. create a Makefile.am which looks like this:
    bin_Programs = <program_name>
    <program_name>_SOURCES = <your_source_files>
    <program_name>_CXXFLAGS = -g
3. Next, run 'autoscan' in the directory. Then run 'mv configure.scan
configure.ac'
4. Next, edit the configure.ac file:
    remove AC_CONFIG_HEADERS
    add AC_INIT_AUTOMAKE after AC_PROG_CXX
5. Save the file and exit out of your editor back to the command line
6. Next, run 'aclocal'
7. Next, run 'autoconf'
8. Next, run 'automake --add-missing'
    For each file that it says it cannot find , run 'touch <FILENAME>'
9. run 'automake' again... This time it should not complain.
10. Next, run './configure'
11. Next, run make

At this point your executable should be built.

If this is not clear, I would be more than happy to explain any part of it.


Justin

On Sun, Sep 19, 2010 at 1:51 PM, wolf at wolfhalton.info
<wolf at wolfhalton.info> wrote:
> Hi Justin,
>
> 4 .c, 22 .cpp
>
> I would need to create  a Configure and a make file, wouldn't I?
>
> -Wolf
> -----Original Message-----
> From: Justin Simms <justin.simms at gmail.com>
> Reply-to: Atlanta Linux Enthusiasts - Yes! We run Linux! <ale at ale.org>
> To: Atlanta Linux Enthusiasts - Yes! We run Linux! <ale at ale.org>
> Subject: Re: [ale] VC++ to regular C++
> Date: Sun, 19 Sep 2010 13:05:19 -0400
>
> Wolf,
>
> It should not be too hard to do, since all you need for compilation in
> a linux environment is the source code. How many files do you have
> that are .cpp or c.? Thanks!
>
> Justin
>
> On Sun, Sep 19, 2010 at 11:37 AM, wolf at wolfhalton.info
> <wolf at wolfhalton.info> wrote:
>> I got a little program with source code that was compiled to an .exe which
>> failed with memory-location-unreachable error on my VirtualBox XP
>> instance.
>> I peeked in the source-code folder and discovered a collection of C and
>> C++
>> source files, but the main project file is a VC++ file.  How hard do you
>> think it would be to adjust the project to make it readable on an Ubuntu
>> box?
>>
>> -Wolf
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>



More information about the Ale mailing list